Let's Join and share our day to day activities, Views, Knowledge, Questions and achievements in Oracle Database (8i / 9i / 10g or 11g)
Showing posts with label administration. Show all posts
Showing posts with label administration. Show all posts

Apr 7, 2011

Oracle Certifications


Database

Version

Product

Job Role

Associate

Professional

Master

Specialization/
Expert

Oracle Database 11g

11g

Oracle Database 11g

Database Administrator

Oracle 11g DBA OCA

Oracle 11g DBA OCP

Oracle 11g DBA OCM


11g

Oracle Database 11g

Database Administrator




Oracle Database 11g Performance Tuning Certified Expert

11g

Oracle Database 11g

Database Administrator




Oracle Certified Expert, Oracle Real Application Clusters 11g and Grid Infrastructure Administrator


Oracle Database

Database Administrator




Oracle Database: SQL Certified Expert


Oracle Database

Application Developer




Oracle Application Express Developer Certified Expert

Oracle Database 10g

10g

Oracle Database 10g

Database Administrator

Oracle 10g DBA OCA

Oracle 10g DBA OCP

Oracle 10g DBA OCM


10g

Oracle Database 10g

Database Administrator




Oracle 10g: Managing Oracle on Linux Certified Expert

10g

Oracle Database 10g

Database Administrator




Oracle Database 10g: Administering Real Application Clusters Certified Expert


Oracle Database

Database Administrator




Oracle Database: SQL Certified Expert


Oracle Database

Application Developer




Oracle Application Express Developer Certified Expert

Oracle9i Database

9i

Oracle9i Database

Database Administrator

Oracle9i DBA OCA

Oracle9i DBA OCP




Dec 8, 2010

Data Pump Export and Import - Step by Step

Setup both your source and target database:

1. sqlplus to source and target DB as sys or system.

2. create directory with the following command:

CREATE DIRECTORY dpump_dir1 AS 'Z:\output_dir';

– “Z:\output_dir” can be any directory where you want the exported dump file to go.

3. Exit sqlplus.

4. Run the following command to export using data pump:

expdp system/[PASSWORD]@[SID] schemas=[SCHEMA] DIRECTORY=dpump_dir1 JOB_NAME=hr DUMPFILE=[SCHEMA]_[SID]_%u.dmp PARALLEL=4

– replace strings in [ ] with the ones for your environment.

5. Run the following command to import using data pump:

impdp system/[PASSWORD]@[SID] schemas=[SCHEMA] DIRECTORY=dpump_dir1 JOB_NAME=hr DUMPFILE=[SCHEMA]_[SID]_%u.dmp PARALLEL=8

– replace strings in [ ] with the ones for your environment.

Notes:

- If your target database is on another host, be aware of the directory setup.

- If you want to import into existing table, simply add TABLE_EXISTS_ACTION=APPEND as part of the command.

- If you only want to import certain tables, use TABLES=[TABLE_NAME1,TABLE_NAME2 ...etc].

- You can also use TABLE_EXISTS_ACTION=TRUNCATE to first truncate the target table before the import.

- You can adjust PARALLEL parameter depending on the number of CPUs on your system.

Aug 30, 2010

How to Create and Use OMF


OMF indicates Oracle Managed Files. With the use of Oracle-managed files the administration of an Oracle Database can be simplified. Oracle-managed files eliminate the need for you, the DBA, to directly manage the operating system files comprising an Oracle Database. You specify operations in terms of database objects rather than filenames.

Enable the Creation of OMFs
The following initialization parameters allow the database server to use the Oracle-managed files feature.

1)DB_CREATE_FILE_DEST: Defines the location of the default file system directory where the database creates datafiles or tempfiles when no file specification is given in the creation operation. It is also used as the default file system directory for redo log and control files if DB_CREATE_ONLINE_LOG_DEST_n is not specified.

2)DB_CREATE_ONLINE_LOG_DEST_n:Defines the location of the default file system directory for redo log files and control file creation when no file specification is given in the creation operation. You can use this initialization parameter multiple times, where n specifies a multiplexed copy of the redo log or control file. You can specify up to five multiplexed copies.

3)DB_RECOVERY_FILE_DEST:Defines the location of the default file system directory where the database creates RMAN backups when no format option is used, archived logs when no other local destination is configured, and flashback logs. Also used as the default file system directory for redo log and control files if DB_CREATE_ONLINE_LOG_DEST_n is not specified.

Both of these initialization parameters are dynamic, and can be set using the ALTER SYSTEM or ALTER SESSION statement.

An Example of using OMF :
 
1)Setting the parameter for the session:

SQL> alter session set db_create_file_dest='/oradata';
Session altered.

2)Create Tablespace using OMF:

SQL> create tablespace omf_tbls;
Tablespace created.

3)Check the data file Location:

SQL> select file_name from dba_data_files where tablespace_name='OMF_TBLS';
FILE_NAME
--------------------------------------------------------------------------------
/oradata/ZIYADEV/datafile/o1_mf_omf_tbls_4049w4op_.dbf

Here ZIYADEV is the Database Name.

The dafault location for datafile is Your settings for parameter/Database Name/datafile/Unique Name.dbf