所有由小潘发布的文章

喜欢分享的小潘.

Oracle建立DBLink相关命令

单节点:

/*drop public database link xx_link;*/

create public database link xx_link
       connect to xx_user identified by xx_user 
       using ' (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.1.2)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XXXX)
    )
  )';

双节点:

/*drop public database link xx_link;*/

create public database link xx_link
connect to xx_user identified by xx_user 
using '(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.1.92)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.1.93)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME =PROD)
)
)';

Oracle ebs财务系统年中结算流程(善用Oracle提供的标准检测util)

1.Oracle 总账应用中年终结算流程包含在开启/关闭期间程序里。当用户开启新一年的第一个期间,开启/关闭期间程序中的"gloire" 流程会完成传送所有收入及支出(损益表)账户余额至留存收益账户(REA)的工作。

之后程序会将新一年的第一个期间中的这些收入和费用账户的起始余额设置为0。这些处理流程不会创建日记账,只是单纯的更新新期间的账户余额。其余类型的账户实际余额-资产、负债和所有者权益(资产负债表)平移到新的一年。

注意:在打开新年度之前检查是否有错误的账户类别(不正确的会计、账户类别的科目组合)是很重要的。

帮助找出错误的账户类别请运行总账的诊断工具:错误的账户类别活动脚本Note:1416402.1

2. 用户可以在完成前一年的所有处理流程后开启’新’一年<internal only用户可以在完成前一年的所有处理流程之前>。这允许子分类账处理流程继续正常的工作。当日记账被传送至“最新开启期间”的前一期间时,如果新一年的第一个期间落在日记账导入的期间与最新开启的期间之间。传送程序会前滚实际余额至曾经开启的所有期间,以此更新留存收益余额,

注意:过早的开启新一年的第一个期间会导致传送性能下降。这是因为传送程序会前滚至所有受影响的账户余额至所有开启的期间<internal only至所有曾经开启的未来期间>。

3.在开启/关闭程序期间, "gloire" 流程为每个在前一年当中有活动的平衡段值确认一个有效地,激活的留存收益账户(包括当年没有活动的但在GL_BALANCES表里有余额的科目)。流程需要这些留存收益账户即使一个平衡段值的所有事务处理最终净额为0。

4.在开启新一年的第一个期间之前,“关闭”前一年,需要采取以下步骤: 

  1.  备份数据库。

  2.  核对下一个日历年以及定义过的期间。

  3.  运行在关闭期间时应该运行的报表。如果用户有需要为年终结算查看更多的报表,请依次运行。在总账中没有“年终”报表。

5.在完成以上步骤后,开启新一年的第一个期间。该流程成功完成之后,为新一年运行试算表报表(trial balance report )并且检查确保所有的收入以及支出账户的起始余额为0。

注意:如果期初余额有任何疑问,请使用Note.1416402.1中的分析脚本。

6. 如果公司要求在年结时产生会计分录,需要运行年结分录流程:

       “关闭流程 – 创建损益表以关闭日记账”-会创建结转余额到留存收益科目的会计分录。

       “关闭流程 – 创建资产负债表以关闭日记账”-结转余额到下一年。

7.如果用户有任何收入或者支出账户没有结0,大多数是因为错误的账户类型。检查账户都设置为正确的账户类型(例如:收入或者支出)。

检查账户类型路径:GL->设置 =>财务=>弹性域=>键=>值

  查询账户值并且tab直至段限定词窗口弹出。账户类型会显示在该窗口上。如果账户类型是错误的,按照“误分类账户类型”文档。该文档可以在“总账用户指南”中的“维护(maintenance)”标题下找到(该流程适用于11i和R12)。

  还必需检查科目组合中的账户类别,如果存在不正确的账户类别的段值(通常会是费用类),也会存在不正确的账户类别的会计科目组合,只更正段值不会更正科目组合。

8. 只有实际的余额会自动结转至新的一年,保留款和预算余额需要运行保留款和预算余额年结流程传送数据到新的一年。 

9. 使用用户指南中的年结检查列表检查总账中的年结流程。

Oracle数据库表空间增长机制及相关信息

准备写入数据-》寻找可用空间-》找到可用的分区-》找到可用的块-》写满或未发现有可用的块-》需要新的分区并申请-》表空间的数据文件的可用空间已不足以分配一个分区-》申请扩展数据文件空间-》若数据文件已达到最大值或磁盘上无可用空间,则报错。

一、 查看Oracle数据库表空间使用情况

select upper(f.tablespace_name) "表空间名",
       d.tot_grootte_mb "表空间大小(m)",
       d.tot_grootte_mb – f.total_bytes "已使用空间(m)",
       to_char(round((d.tot_grootte_mb – f.total_bytes) / d.tot_grootte_mb * 100,
                     2),
               '990.99') || '%' "使用比",
       f.total_bytes "空闲空间(m)",
       f.max_bytes "最大块(m)"
  from (select tablespace_name,
               round(sum(bytes) / (1024 * 1024), 2) total_bytes,
               round(max(bytes) / (1024 * 1024), 2) max_bytes
          from sys.dba_free_space
         group by tablespace_name) f,
       (select dd.tablespace_name,
               round(sum(dd.bytes) / (1024 * 1024), 2) tot_grootte_mb
          from sys.dba_data_files dd
         group by dd.tablespace_name) d
 where d.tablespace_name = f.tablespace_name
 order by 1;

二、扩大表空间的四种方法

–给表空间增加数据文件

ALTER  TABLESPACE  app_data  ADD  DATAFILE  'D:\dbfile\app_01.dbf'  SIZE  1G;

–新增数据文件,并且允许数据文件自动增长

ALTER  TABLESPACE  app_data  ADD  DATAFILE  'D:\dbfile\app_02.dbf'  SIZE  500M

AUTOEXTEND  ON  NEXT  50M  MAXSIZE  5G;

–允许已存在的数据文件自动增长

ALTER  DATABASE  DATAFILE  'D:\dbfile\app_01.dbf'

AUTOEXTEND  ON  NEXT  50M  MAXSIZE  UNLIMITED;

–手工改变已存在数据文件的大小

ALTER  DATABASE  DATAFILE  'D:\dbfile\app_01.dbf' RESIZE 500M;

三、系统表空间过大的情况

1)system表空间过大(使用率95%以上)

    a)检查aud$表大小

–查看数据库表大小SQL

select bytes,owner,segment_name

from dba_segments

where segment_type='TABLE' order by bytes desc;

–查看aud$表大小SQL

select bytes,owner,segment_name

from dba_segments

where segment_type='TABLE' and segment_name = 'AUD$';

    b) 如果aud$过大,清理.导出aud$表后,用truncate清理.

    c) 如果出现aud$表为空,system表空间使用率照样达到99%,建议增加数据文件,如下:

alter tablespace system add datafile 'D:\dbfile\SYSTEM_02.DBF' size 50M autoextend on;

select * from dba_data_files;

2)sysaux表空间(使用率95%以上)

a) 修改统计信息保存时间

select dbms_stats.get_stats_history_retention from dual;  –检查统计信息保存时间(默认应该是31天);

exec dbms_stats.alter_stats_history_retention(7);  –如果31天将其改为7天;

select dbms_stats.get_stats_history_retention from dual;  –验证是否修改成功;

b) 删除AWR报告快照

    批注:Oracle 10g中快照会保留7天,11g的快照保留8天,超出会自动删除。AWR快照可以从其他数据库导入,而这部分数据会保存时间极长。有时候也会遇到自动快照不能自动收集,而手工创建的快照又可以成功,对于这种情况就需要把以前的快照清理掉。

    删除AWR有两种方式进行删除:dbms_workload_repository,dbms_swrf_internal。dbms_workload_repository可以删除本地和其他数据库的快照,可以选择不同的快照来进行删除;dbms_swrf_internal只能对其他数据库的快照来进行操作,会把所有的快照直接干掉。

使用dbms_workload_repository包删除:

 select dbid, retention from dba_hist_wr_control;
 select min(snap_id), max(snap_id)from dba_hist_snapshot where dbid = '得到的dbid值';
 exec dbms_workload_repository.drop_snapshot_range('得到的min(snap_id)值','得到的max(snap_id)值','得到的dbid值');
 select * from dba_hist_snapshot where dbid = '得到的dbid值';

使用dbms_swrf_internal包删除:

 select dbid, retention from dba_hist_wr_control;
 select min(snap_id), max(snap_id)from dba_hist_snapshot where dbid = '得到的dbid值';
 exec dbms_swrf_internal.unregister_database('得到的dbid值');
 select * from dba_hist_snapshot where dbid = '得到的dbid值';

——————————sysaux表空间解读————————————–


SYSAUX表空间在Oracle Database 10g中引入,作为SYSTEM表空间的辅助表空间。

以前一些使用独立表空间或系统表空间的数据库组件现在在SYSAUX表空间中创建。

SYSAUX 表空间存放一些其他的 metadata 组件,如 OEM,Streams 等会默认存放在 SYSAUX 表空间里。

通过分离这些组件和功能,SYSTEM表空间的负荷得以减轻.反复创建一些相关对象及组件引起SYSTEM表空间的碎片问题得以避免。

因此SYSAUX 表空间也是在在 DB 创建或者升级时自动创建的。 如果在手工使用SQL 创建 DB 时没有指定 SYSAUX tablespace,那么创建语句会报错。 无法执行。

在正常操作下, 不能 drop 和 rename SYSAUX 表空间。

如果SYSAUX表空间不可用,数据库核心功能将保持有效;使用SYSAUX表空间的特点将会失败或功能受限.。

我们不能使用 alter tablespace 来修改这 4 个属性,同样也不能 drop 和 rename SYSAUX 表空间。

查看SYSAUX表空间信息:

select OCCUPANT_NAME, SCHEMA_NAME,MOVE_PROCEDURE ,SPACE_USAGE_KBYTES from V$SYSAUX_OCCUPANTS;

这些组件占据这 SYSAUX 表空间,所以这些组件的大小也就决定 SYSAUX表空间的大小。

•schema_name 对应的是用户名。

•在v$sysaux_occupants 视图里中的move_procudure字段,是用于迁移组件信息的。就是对于已经安装好的组件,如果想把这些组件放到其他的空间,可以使用这个存储过程。如果没有对应的过程,说明不可移动。

比如我们的AWR。 AWR 是SYSAUX 中占用空间最多的组件。 对于一个有10个并发session 的系统,就需要200M 的空间。当然,也可以修改AWR的保存策略来控制AWR所占用空间的大小。


Oracle EBS12.2.6 克隆问题集合

数据库克隆错误:

AutoConfig could not successfully execute the following scripts: 
    Directory: /u01/TEST/db/12.1.0/perl/bin/perl -I /u01/TEST/db/12.1.0/perl/lib/5.14.1 -I /u01/TEST/db/12.1.0/perl/lib/site_perl/5.14.1 -I /u01/TEST/db/12.1.0/appsutil/perl /u01/TEST/db/12.1.0/appsutil/clone
      ouicli.pl               INSTE8_APPLY       1 

AutoConfig is exiting with status 1

WARNING: RC-50013: Fatal: Instantiate driver did not complete successfully.
/u01/TEST/db/12.1.0/appsutil/driver/regclone.drv

 

当你执行一次时,报错后,会在oraInventory文件夹中生成数据,再此执行会报如上错误,删除这个文件夹内容重新执行克隆命令即可(rm -rf *).

–数据库克隆完全日志(数据库用户操作)

cd /u01/DEV/db/12.1.0/appsutil/clone/bin

perl adcfgclone.pl dbTier

[oradev@devfin bin]$ perl adcfgclone.pl dbTier

                     Copyright (c) 2002, 2015 Oracle Corporation

                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.56

Enter the APPS password : 输入apps密码

Running: Context clone…

Log file located at /u01/DEV/db/12.1.0/appsutil/clone/bin/CloneContext_1107124902.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [devfin] :

Target Instance is RAC (y/n) [n] : n

Target System Database SID : DEV

Target System Base Directory : /u01/DEV/db

Target System utl_file_dir Directory List : /u01/DEV/temp

Number of DATA_TOP's on the Target System [1] : 1

Target System DATA_TOP Directory 1 [/u01/DEV/db/data] : /u01/DEV/db/data

Target System RDBMS ORACLE_HOME Directory [/u01/DEV/db/12.1.0] : /u01/DEV/db/12.1.0

Do you want to preserve the Display [devfin:1.0] (y/n)  : n

Target System Display [devfin:0.0] :

Target System Port Pool [0-99] : 0

Checking the port pool 0

done: Port Pool 0 is free

Report file located at /u01/DEV/db/12.1.0/appsutil/temp/portpool.lst

The new database context file has been created :

  /u01/DEV/db/12.1.0/appsutil/DEV_devfin.xml

Check Clone Context logfile /u01/DEV/db/12.1.0/appsutil/clone/bin/CloneContext_1107124902.log for details.

Running Rapid Clone with command:

Running:

perl /u01/DEV/db/12.1.0/appsutil/clone/bin/adclone.pl java=/u01/DEV/db/12.1.0/appsutil/clone/bin/../jre mode=apply stage=/u01/DEV/db/12.1.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/DEV/db/12.1.0/appsutil/DEV_devfin.xml showProgress contextValidated=true

Beginning database tier Apply – Tue Nov  7 12:50:41 2017

/u01/DEV/db/12.1.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/u01/DEV/db/12.1.0/oui -classpath /u01/DEV/db/12.1.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/DEV/db/12.1.0/appsutil/clone/jlib/ojdbc6.jar:/u01/DEV/db/12.1.0/appsutil/clone/jlib/java:/u01/DEV/db/12.1.0/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/DEV/db/12.1.0/appsutil/clone/jlib/oui/ewt3.jar:/u01/DEV/db/12.1.0/appsutil/clone/jlib/oui/share.jar:/u01/DEV/db/12.1.0/appsutil/clone/jlib/oui/srvm.jar:/u01/DEV/db/12.1.0/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTier -e /u01/DEV/db/12.1.0/appsutil/DEV_devfin.xml -stage /u01/DEV/db/12.1.0/appsutil/clone   -showProgress

APPS Password : Log file located at /u01/DEV/db/12.1.0/appsutil/log/DEV_devfin/ApplyDBTier_11071250.log

  /     15% completed      

Completed Apply…

Tue Nov  7 12:56:59 2017

Starting database listener for DEV:

Running:

/u01/DEV/db/12.1.0/appsutil/scripts/DEV_devfin/addlnctl.sh start DEV

Logfile: /u01/DEV/db/12.1.0/appsutil/log/DEV_devfin/addlnctl.txt

You are running addlnctl.sh version 120.4

Starting listener process DEV…

Listener DEV has already been started.

addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /u01/DEV/db/12.1.0/appsutil/log/DEV_devfin/addlnctl.txt for more information … 

Do you want to change the password for all EBS Schemas? (y/n) [n]) : n

Do you want to change the password for sysadmin user? (y/n) [n]) : n

Do you want to change the apps password? (y/n) [n]) : n

Do you want to change the sys and system passwords? (y/n) [n]) : n

Running ETCC to check status of DB technology patches…

 +===============================================================+

 |    Copyright (c) 2005, 2016 Oracle and/or its affiliates.     |

 |                     All rights reserved.                      |

 |             Oracle E-Business Suite Release 12.2              |

 |          Database EBS Technology Codelevel Checker            |

 +===============================================================+

Using context file from command line argument:

/u01/DEV/db/12.1.0/appsutil/DEV_devfin.xml

Starting Database EBS Technology Codelevel Checker, Version 120.38

Tue Nov  7 12:57:24 CST 2017

Log file for this session : /u01/DEV/db/12.1.0/appsutil/etcc/checkDBpatch_21112.log

Bugfix XML file version: 120.0.12020000.32

This file will be used for identifying missing bugfixes.

Mapping XML file version: 120.0.12020000.5

This file will be used for mapping bugfixes to patches.

[WARNING] DB-ETCC: Bugfix XML file (txk_R1220_DB_base_bugs.xml) in current directory is more than 30 days old.

 Check if a newer version is available in patch 17537119.

Identifying database release.

Database release set to 12.1.0.2.

Connecting to database.

Database connection successful.

Database DEV is in READ WRITE mode.

Identifying APPS and APPLSYS schema names.

 – APPS schema : APPS

 – APPLSYS schema : APPLSYS

Checking for DB-ETCC results table.

Table to store DB-ETCC results already exists in the database.

Checking if InMemory option is enabled.

InMemory option is not enabled in the Database.

Checking Bugfix XML file for 12.1.0.2_PSU

Obtained list of bugfixes to be applied and the list to be rolled back.

Now checking Database ORACLE_HOME.

The opatch utility is version 12.2.0.1.7.

DB-ETCC is compatible with this opatch version.

Found patch records in the inventory.

Checking Mapping XML file for 12.1.0.2.160719

All the required one-off bugfixes are present in Database ORACLE_HOME.

Stored Technology Codelevel Checker results in the database DEV successfully.

Finished prerequisite patch testing : Tue Nov  7 12:57:32 CST 2017

Log file for this session: /u01/DEV/db/12.1.0/appsutil/etcc/checkDBpatch_21112.log

 

–应用克隆完全日志(应用用户操作)

cd /u01/DEV/app/fs1/EBSapps/comn/clone/bin

perl adcfgclone.pl appsTier dualfs

[appldev@devfin ~]$ cd /u01/DEV/app/fs1/EBSapps/comn/clone/bin

[appldev@devfin bin]$ perl adcfgclone.pl appsTier dualfs

                     Copyright (c) 2002, 2015 Oracle Corporation

                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.56

                ***********************************************************

                In AD-TXK Delta 7, we recommend you clone the run and patch

                file systems in a single operation using the 'dualfs' option.

                Separate cloning of the run and patch file systems will be deprecated

                ************************************************************

Enter the APPS password :

Enter the Weblogic AdminServer password :

Do you want to add a node (yes/no) [no] :

Running: Context clone…

Log file located at /u01/DEV/app/fs1/EBSapps/comn/clone/bin/CloneContext_1107125941.log

Target System File Edition type [run] :

Provide the values required for creation of the new APPL_TOP Context file.

Target System Hostname (virtual or normal) [devfin] :

Target System Database SID : DEV

Target System Database Server Node [devfin] :

Target System Database Domain Name [guobaojinrong.com] :

Target System Base Directory : /u01/DEV/app

Target System Base Directory set to /u01/DEV/app

Target System Current File System Base set to /u01/DEV/app/fs1

Target System Other File System Base set to /u01/DEV/app/fs2

Target System Fusion Middleware Home set to /u01/DEV/app/fs1/FMW_Home

Target System Web Oracle Home set to /u01/DEV/app/fs1/FMW_Home/webtier

Target System Appl TOP set to /u01/DEV/app/fs1/EBSapps/appl

Target System COMMON TOP set to /u01/DEV/app/fs1/EBSapps/comn

Target System Instance Home Directory [/u01/DEV/app] :

Target System Instance Top set to /u01/DEV/app/fs1/inst/apps/DEV_devfin

Do you want to preserve the Display [devfin:1.0] (y/n)  : n

Target System Display [devfin:0.0] :

Target System Root Service [enabled] :

Target System Web Entry Point Services [enabled] :

Target System Web Application Services [enabled] :

Target System Batch Processing Services [enabled] :

Target System Other Services [disabled] :

Target System Port Pool [0-99] : 0

Checking the port pool 0

done: Port Pool 0 is free

Report file located at /u01/DEV/app/fs1/inst/apps/DEV_devfin/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp

2. /u01/DEV/temp

3. /u01/DEV/db/12.1.0/appsutil/outbound/DEV_devfin

4. /usr/tmp

Choose a value which will be set as APPLPTMP value on the target node [1] : 2

The new APPL_TOP context file has been created :

  /u01/DEV/app/fs1/inst/apps/DEV_devfin/appl/admin/DEV_devfin.xml

Check Clone Context logfile /u01/DEV/app/fs1/EBSapps/comn/clone/bin/CloneContext_1107125941.log for details.

Running Rapid Clone with command:

Running:

perl /u01/DEV/app/fs1/EBSapps/comn/clone/bin/adclone.pl java=/u01/DEV/app/fs1/EBSapps/comn/clone/bin/../jre mode=apply stage=/u01/DEV/app/fs1/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/DEV/app/fs1/inst/apps/DEV_devfin/appl/admin/DEV_devfin.xml showProgress contextValidated=true

FMW Pre-requisite check log file location : /u01/DEV/app/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Running: /u01/DEV/app/fs1/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/DEV/app/fs1/inst/apps/DEV_devfin/appl/admin/DEV_devfin.xml -stage /u01/DEV/app/fs1/EBSapps/comn/clone -log /u01/DEV/app/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply – Tue Nov  7 13:02:18 2017

/u01/DEV/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/DEV/app/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/java:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/oui/share.jar:/u01/DEV/app/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/DEV/app/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/DEV/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/DEV/app/fs1/inst/apps/DEV_devfin/appl/admin/DEV_devfin.xml -stage /u01/DEV/app/fs1/EBSapps/comn/clone    -showProgress -nopromptmsg

Log file located at /u01/DEV/app/fs1/inst/apps/DEV_devfin/admin/log/clone/ApplyAppsTier_11071302.log

提醒:应用克隆命令中perl adcfgclone.pl appsTier dualfs,建议加上“dualfs”,这样系统会自动将fs2节点进行克隆,否则需要单独去做fs2节点克隆。

–新安装的R12.2.6大小(总共192G)

[oraprod@ebsdb u01]$ du -sh PROD/
102G    PROD/

[applprod@ebs u01]$ du -sh PROD/
90G     PROD/

[oraprod@ebsdb ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       47G  4.2G   41G  10% /
tmpfs                  16G  1.9M   16G   1% /dev/shm
/dev/sda1             477M   41M  411M   9% /boot
/dev/sdb1             985G  118G  817G  13% /u01
/u01/stageR12/rpmfiles/Oracle_Enterprise_Linux_64_位-file1.iso
                      3.8G  3.8G     0 100% /media

[applprod@ebs ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       47G  4.4G   40G  10% /
tmpfs                  16G   68K   16G   1% /dev/shm
/dev/sda1             477M   35M  418M   8% /boot
/dev/sdb1             985G  110G  825G  12% /u01
/u01/stageR12/rpmfiles/Oracle_Enterprise_Linux_64_位-file1.iso
                      3.8G  3.8G     0 100% /media