Oracle 10GR2 Installation

04/19/11 | by admin [mail] | Categories: Fun Stuff

This will be some fiun stuff. Before you install we need to determine the basic pre-installation requirements

  • Hardware Requirements
    grep MemTotal /proc/meminfo # Gives the RAM Avaiable in linux

    get-wmiobject Win32_processor -computername # in windows using pwershell or you can use computer mananagemt and find it
    get-wmiobject Win32_ComputerSystem –> # Memory information

impdp Exclude

07/22/09 | by admin [mail] | Categories: Oracle, IMPDP _EXPDP

Excluding tables while importing
$ORACLE_HOME/bin/impdp \’/ as sysdba\’ remap_schema=suite_1_1_prod:suite_1_1_prod_stage DIRECTORY=DATADUMP_RAID dumpfile=$suite_Dumpname.dmp logfile=impdp_$suite_Dumpname.log remap_tablespace=suite:suite_stage
“EXCLUDE=TABLE:\"IN (’CATISSUE_AUDIT_EVENT_LOG’,'CATISSUE_AUDIT_EVENT_DETAILS’,
‘CATISSUE_AUDIT_EVENT_QUERY_LOG’, #’CATISSUE_AUDIT_EVENT’)\"”

Impdp issues
When importing data with datapump and remapping the schema and/or the tablespace, the final stage of the import takes quite a dramatic time to complete, even more than the actual data import.
The datapump import utility shows as last line in many situation:
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Solution

  • Exclude statistics:
    impdp \’/ as sysdba\’ DIRECTORY=DATA_PUMP_DIR DUMPfile= schema_CLINPP120090721_2110.dmp LOGFILE=impdp_schema_CLINPP120090707_2110.log JOB_NAME=import2clinpq2 REMAP_SCHEMA=CLINPP1:clinpq2 exclude=statistics
  • GATHER STATISTICS :
    EXEC DBMS_STATS.gather_schema_stats (ownname => ‘CLINPQ2′,cascade =>true,estimate_percent => dbms_stats.auto_sample_size,options => ‘GATHER AUTO’,granularity=>’ALL’)

impdp Exclude

07/22/09 | by admin [mail] | Categories: Oracle, IMPDP _EXPDP

Excluding tables while importing
$ORACLE_HOME/bin/impdp \’/ as sysdba\’ remap_schema=suite_1_1_prod:suite_1_1_prod_stage DIRECTORY=DATADUMP_RAID dumpfile=$suite_Dumpname.dmp logfile=impdp_$suite_Dumpname.log remap_tablespace=suite:suite_stage
“EXCLUDE=TABLE:\"IN (’CATISSUE_AUDIT_EVENT_LOG’,'CATISSUE_AUDIT_EVENT_DETAILS’,
‘CATISSUE_AUDIT_EVENT_QUERY_LOG’, #’CATISSUE_AUDIT_EVENT’)\"”

Kill a EXPDP or IMPDP jobs

01/15/09 | by admin [mail] | Categories: Fun Stuff, Oracle, IMPDP _EXPDP

1) Run the SQL query

SQL>SELECT * FROM DBA_DATAPUMP_JOBS

[oracle@biomedinfo ~]$ expdp ‘userid="sys/persistent as sysdba"‘ attach={JOB_NAME from above query}
Export> KILL_JOB

… [more]

EXPORT AND IMPORT -- REMAP TBS

01/15/09 | by admin [mail] | Categories: IMPDP _EXPDP

1) Export the tablespace

expdp ‘userid=sys/password as sysdba’ DIRECTORY=imp_EXP DUMPfile=ts_REFDATA.dmp LOGFILE=ts_REFDATA.LOG TABLESPACES=REFDATA

2)Import and remap

expdp ‘userid=sys/password as sysdba’ DIRECTORY=imp_EXP DUMPfile=ts_REFDATA.dmp LOGFILE=ts_REFDATA.LOG TABLESPACES=REFDATA
REMAP_TABLESPACE=REFDATA:RESOLVEDDATA

if you have merge mutiple tablespaces into one then
1) Take an expdp of the tablesspaces

expdp ‘userid=sys/password as sysdba’ DIRECTORY=imp_EXP DUMPfile=ts_REFDATA.dmp LOGFILE=ts_REFDATA.LOG TABLESPACES=REFDATA, refdate1

2)Import and remap

expdp ‘userid=sys/password as sysdba’ DIRECTORY=imp_EXP DUMPfile=ts_REFDATA.dmp LOGFILE=ts_REFDATA.LOG TABLESPACES=REFDATA
REMAP_TABLESPACE=REFDATA:RESOLVEDDATA,refdate1:RESOLVEDDATA

export and import to shrink a tablespace
1) export the tablespace

expdp \’/ as sysdba\’ DIRECTORY=TEMP_DIR1 DUMPFILE=TEMP_DIR:PROMOTER_DATA.dmp LOGFILE=TEMP_DIR:exp_PROMOTER_DATA.log tablespaces=PROMOTER_DATA

2) Import the tablespace

impdp \’/ as sysdba\’ DIRECTORY=TEMP_DIR1 DUMPFILE=TEMP_DIR:PROMOTER_DATA.dmp LOGFILE=TEMP_DIR:impdp_PROMOTER_DATA.log

Export and import to a schema into mutiple dump files using FILEsize option parameter file

  • Export the schema
  • Expdp cmd : expdp \’/ as sysdba\’ parfile=/home/oracle/chip_admin.par
  • contents of chip_admin.par

    DIRECTORY=DATA_PUMP_DIR
    SCHEMAS=CHIP_ADMIN
    DUMPFILE=DATA_PUMP_DIR:CHIP_ADMIN_%U
    FILESIZE=32G
    LOGFILE=DATA_PUMP_DIR:CHIP_ADMIN.log
    PARALLEL=2

  • scp the dump files to the new location
  • Expdp cmd : impdp \’/ as sysdba\’ parfile=/home/oracle/impdpchip_admin.par
  • contents of impdpchip_admin.par

    DIRECTORY=TEMP_DIR1
    DUMPFILE=TEMP_DIR:CHIP_ADMIN_%U.dmp
    LOGFILE=TEMP_DIR:imp_chip_admin.log
    JOB_NAME=import2CHIP_ADMINMUtipelinputs
    REMAP_SCHEMA=CHIP_ADMIN:CHIP_ADMIN
    REMAP_TABLESPACE=REFDATA:MGACHIP_ADMIN,CHIPDATA:MGACHIP_ADMIN,
    TEXTINDX:MGACHIP_ADMIN,USERS:MGACHIP_ADMIN,PUBMEDDATA:MGACHIP_ADMIN,
    INDX:MGACHIP_ADMIN,SEQDATA:MGACHIP_ADMIN,LOBDATA:MGACHIP_ADMIN,
    POSTDATA:MGACHIP_ADMIN,PUBMED_DATA:MGACHIP_ADMIN,
    PUBMED_INDEX:MGACHIP_ADMIN,CACOREDATA:MGACHIP_ADMIN

:: Next Page >>

Blog All Title

This is the long description for the blog named 'Blog All'.

This blog (blog #1) is actually a very special blog! It automatically aggregates all posts from all other blogs. This allows you to easily track everything that is posted on this system. You can hide this blog from the public by unchecking 'Include in public blog list' in the blogs admin.

| Next >

January 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Linkblog

Misc

XML Feeds

What is RSS?

powered by b2evolution free blog software