Subscribe

Subscribe

Vladstudio

How do you create Export/Import views

Run the “catexp.sql” as SYS. The file is located in $ORACLE_HOME/rdbms/admin.

SQL> @?/rdbms/admin/catexp.sql

Moving an Oracle database to a newer Oracle home

Moving a database to a new oracle home, owned by a different user and running a newer version.

NOTE : This is how is worked in my environment. It might not work the same in your environment. This is meant as a guide only.

Changeing an Oracle database character set

Check what character set you are using at the moment.
SQL> select value from v$nls_parameters where parameter=’NLS_CHARACTERSET’;

Shutdown the database.
SQL> shutdown immediate;

Startup in mount mode.
SQL> startup mount;

Restrict the database.
SQL> alter system enable restricted session;

Check the current job_queue_processes setting.
SQL> show parameter job_queue_processes;

Set it to 0 for now.
SQL> alter system set job_queue_processes=0;

Open the database.
SQL> alter database open;

Change the character [...]

Using cpio

Some files that you get from Oracle download come in cpio format.
Here’s what to do with them.
First unzip the files:

gunzip lnx_920_disk1.cpio.gz
gunzip lnx_920_disk2.cpio.gz
gunzip lnx_920_disk3.cpio.gz

Next unpack the contents of the files:

cpio -idmv < lnx_920_disk1.cpio
cpio -idmv < lnx_920_disk2.cpio
cpio -idmv < lnx_920_disk3.cpio

ERROR: NMO not setuid-root (Unix-only)

Possible Cause : root.sh not run after the EM 10G installation.

Fix:
Check the permissions and ownership of the nmo and nmb executable in the $
AGENT_OH/bin, where the management agent has been installed:

$ ls -al nmo
$ ls -al nmb

These should be of the form :

-rwsr-s— 1 root dba 22465 Apr 13 17:53 nmo
-rwsr-s— 1 root dba 18055 [...]