Oracle Database
--
Questions
--
Followers
Top Experts
Is this possible or not, and if yes, can any one please share the steps or some doc link or anything, because I tried using duplicate database, but that's doesn't work here, much appreciated your assistance and help in this regards.
Can any one, please share the steps/link/doc or anything, which can be followed step by step and restore this db.
Thanks in advance.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
and this DBID will be of the source ... right?
catalog start with '//backup files location/';
dbid is from source
select dbid from v$database;
Also one more, it is still trying to read from the location mention at the Source backup folder, where as I've already catalog this target backup location.
Please advice ... thanks.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00064 to +DATA02/orcl/datafile/orcl
channel ORA_DISK_1: reading from backup piece /EMC-Backup/PHDBborcl/PHDB
channel ORA_DISK_1: ORA-19870: error while restoring backup piece /backup/20140506_full/L09g
ORA-19504: failed to create file "+DATA02/orcl/datafile/orc
ORA-17502: ksfdcre:3 Failed to create file +DATA02/orcl/datafile/orcl
ORA-15001: diskgroup "DATA02" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Servic
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00059 to +DATA02/orcl/datafile/orcl
channel ORA_DISK_1: reading from backup piece /EMC-Backup/PHDBborcl/PHDB
RMAN> show all;
RMAN configuration parameters for database with db_unique_name orcl are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/1
RMAN-00571: ==========================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ==========================
RMAN-03002: failure of restore command at 05/14/2014 06:27:14
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '+DATA01/orcl/datafile/sys
after dong the newname too, still giving error

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
http://gavinsoorma.com/2013/02/restoring-a-asm-backup-to-non-asm-and-restoring-from-rac-to-single-instance/
RCV:
run {
set newname for database to '/u01/oradata/orcl/%b';
set newname for database to '/u02/oradata/orcl/%b';
set newname for database to '/u03/oradata/orcl/%b';
set newname for tempfile 1 to '/u03/oradata/orcl/%b';
restore database;
switch datafile all;
switch tempfile all;
}
this is working perfect, only restoring on /u03 ... only :(
Can you assist here?
try:
get the number for each datafile from the source:
set lines 200 pages 9999 trims on
col name for a50
select file#,name from v$datafile order by 1 asc;
FILE# NAME
---------- --------------------------
1 /data1/ORCL/system01.dbf
2 /undo1/ORCL/undotbs01.dbf
3 /data1/ORCL/sysaux01.dbf
4 /data1/ORCL/ORCLDATA01.dbf
5 /data1/ORCL/ORCLDATA.dbf
6 /data1/ORCL/users01.dbf
7 /data1/ORCL/ORCLDATA02.dbf
8 /data1/ORCL/PADATA01
9 /data1/ORCL/PAINDEX01
10 /data1/ORCL/ORCLDATA03.dbf
11 /data1/ORCL/ORCLDATA04.dbf
12 /data1/ORCL/sysaux02.dbf
13 /data1/ORCL/ORCLDATA05.dbf
14 /data1/ORCL/tools01.dbf
14 rows selected.
script to get highest SCN from most recent backup on source (if you are using the most recent backup):
/* Gets the highest SCN from the most recent backup to use with 'SET UNTIL SCN...' in RMAN restore */
SELECT MIN(VBD.CHECKPOINT_CHANGE#
FROM V$BACKUP_DATAFILE VBD, V$DATAFILE VDF,
(SELECT
CREATION_CHANGE#,
MAX(COMPLETION_TIME) COMPLETION_TIME
FROM V$BACKUP_DATAFILE
WHERE CREATION_CHANGE# IN (
SELECT CREATION_CHANGE# FROM V$DATAFILE)
GROUP BY CREATION_CHANGE#
) QUERY1
WHERE VBD.CREATION_CHANGE# = VDF.CREATION_CHANGE#
AND VBD.CREATION_CHANGE# = QUERY1.CREATION_CHANGE#
AND VBD.COMPLETION_TIME = QUERY1.COMPLETION_TIME;
example of set the NEWNAME for the datafiles (RMAN script to run on target):
RUN {
ALLOCATE CHANNEL CH1 TYPE DISK;
ALLOCATE CHANNEL CH2 TYPE DISK;
ALLOCATE CHANNEL CH3 TYPE DISK;
ALLOCATE CHANNEL CH4 TYPE DISK;
SET UNTIL SCN 18251556422;
SET NEWNAME FOR DATAFILE 1 TO '/data2/ORCL/system01.dbf'
SET NEWNAME FOR DATAFILE 2 TO '/undo2/ORCL/undotbs01.dbf
SET NEWNAME FOR DATAFILE 3 TO '/data2/ORCL/sysaux01.dbf'
SET NEWNAME FOR DATAFILE 4 TO '/data2/ORCL/ORCLDATA01.db
SET NEWNAME FOR DATAFILE 5 TO '/data2/ORCL/ORCLDATA.dbf'
SET NEWNAME FOR DATAFILE 6 TO '/data2/ORCL/users01.dbf';
SET NEWNAME FOR DATAFILE 7 TO '/data2/ORCL/ORCLDATA02.db
SET NEWNAME FOR DATAFILE 8 TO '/data3/ORCL/PADATA01';
SET NEWNAME FOR DATAFILE 9 TO '/data3/ORCL/PAINDEX01';
SET NEWNAME FOR DATAFILE 10 TO '/data3/ORCL/ORCLDATA03.db
SET NEWNAME FOR DATAFILE 11 TO '/data3/ORCL/ORCLDATA04.db
SET NEWNAME FOR DATAFILE 12 TO '/data3/ORCL/sysaux02.dbf'
SET NEWNAME FOR DATAFILE 13 TO '/data3/ORCL/ORCLDATA05.db
SET NEWNAME FOR DATAFILE 14 TO '/data3/ORCL/tools01.dbf';
RESTORE DATABASE;
SWITCH DATAFILE ALL;
RECOVER DATABASE;
}
The 'SET NEWNAME FOR DATAFILE <number>' TO...' lets you specify the new filename for the files on the target server, so you can specify which filesystem they go to.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
it is giving me the SCN in the backup files, should I use that one, basically what I've just kicked off,
what I was planning to do, new the run { set newname for all the datafiles + tempfile too and restore database and switch all datafile & tempfile too
and then recover database until that SCN
what do you think, should I do that or yours ... please advice?
Can you post the output that you are getting the SCN from? (just to see what it is showing you, and to make sure it is the right one to use).
As far as getting the SCN to use for the 'SET UNTIL SCN...' the idea is to get the SCN that will allow you to do a full restore to a point in time where the database is stable, and not have to mess around with doing a recovery and applying numerous archive logs.
Example - Finding the High SCN in SQLPlus:
ORCL_TEST> l
1 SELECT MIN(VBD.CHECKPOINT_CHANGE#
2 FROM V$BACKUP_DATAFILE VBD, V$DATAFILE VDF,
3 (SELECT
4 CREATION_CHANGE#,
5 MAX(COMPLETION_TIME) COMPLETION_TIME
6 FROM V$BACKUP_DATAFILE
7 WHERE CREATION_CHANGE# IN (
8 SELECT CREATION_CHANGE# FROM V$DATAFILE)
9 GROUP BY CREATION_CHANGE#
10 ) QUERY1
11 WHERE VBD.CREATION_CHANGE# = VDF.CREATION_CHANGE#
12 AND VBD.CREATION_CHANGE# = QUERY1.CREATION_CHANGE#
13* AND VBD.COMPLETION_TIME = QUERY1.COMPLETION_TIME
MIN_SCN MAX_SCN
---------- ----------
9606561879 9606561882
Now locate it in RMAN (to cross reference). Notice the 2 bold SCNs toward the bottom of the output. They are higher than the SCN we have listed as our MAX_SCN...BUT, they are dealing with archive logs that would need to be applied during recovery after the restore. For what we are wanting here, if we use the SCN that was listed as the MAX_SCN, we should be able to just restore the database (without performing recovery), and then do an 'alter database open resetlogs' and be up and running at that point:
RMAN> list backupset;
using target database control file instead of recovery catalog
List of Backup Sets
===================
.
.
.
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
2808 52.47M DISK 00:00:16 14-MAY-14
BP Key: 2808 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163028
Piece Name: /backup/flash_recovery_are
List of Archived Logs in backup set 2808
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1103 9606482006 14-MAY-14 9606561749 14-MAY-14
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
2809 118.48M DISK 00:00:32 14-MAY-14
BP Key: 2809 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163028
Piece Name: /backup/flash_recovery_are
List of Archived Logs in backup set 2809
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1099 9606240162 13-MAY-14 9606331292 14-MAY-14
1 1100 9606331292 14-MAY-14 9606353723 14-MAY-14
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
2810 127.05M DISK 00:00:33 14-MAY-14
BP Key: 2810 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163028
Piece Name: /backup/flash_recovery_are
List of Archived Logs in backup set 2810
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1101 9606353723 14-MAY-14 9606429015 14-MAY-14
1 1102 9606429015 14-MAY-14 9606482006 14-MAY-14
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2811 Full 4.50G DISK 00:32:00 14-MAY-14
BP Key: 2811 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163106
Piece Name: /backup/flash_recovery_are
List of Datafiles in backup set 2811
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
2 Full 9606561881 14-MAY-14 /undo1/ORCL_TEST/undotbs01
5 Full 9606561881 14-MAY-14 /data1/ORCL_TEST/ORCLDATA.
6 Full 9606561881 14-MAY-14 /data1/ORCL_TEST/users01.d
14 Full 9606561881 14-MAY-14 /data1/ORCL_TEST/tools01.d
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2812 Full 4.66G DISK 00:32:08 14-MAY-14
BP Key: 2812 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163106
Piece Name: /backup/flash_recovery_are
List of Datafiles in backup set 2812
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 9606561882 14-MAY-14 /data1/ORCL_TEST/system01.
7 Full 9606561882 14-MAY-14 /data1/ORCL_TEST/ORCLDATA0
8 Full 9606561882 14-MAY-14 /data1/ORCL_TEST/PADATA01
9 Full 9606561882 14-MAY-14 /data1/ORCL_TEST/PAINDEX01
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2813 Full 5.77G DISK 00:38:11 14-MAY-14
BP Key: 2813 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163106
Piece Name: /backup/flash_recovery_are
List of Datafiles in backup set 2813
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
3 Full 9606561880 14-MAY-14 /data1/ORCL_TEST/sysaux01.
11 Full 9606561880 14-MAY-14 /data1/ORCL_TEST/ORCLDATA0
12 Full 9606561880 14-MAY-14 /data1/ORCL_TEST/sysaux02.
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2814 Full 12.26G DISK 01:04:41 14-MAY-14
BP Key: 2814 Status: AVAILABLE Compressed: YES Tag: TAG20140514T163106
Piece Name: /backup/flash_recovery_are
List of Datafiles in backup set 2814
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
4 Full 9606561879 14-MAY-14 /data1/ORCL_TEST/ORCLDATA0
10 Full 9606561879 14-MAY-14 /data1/ORCL_TEST/ORCLDATA0
13 Full 9606561879 14-MAY-14 /data1/ORCL_TEST/ORCLDATA0
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
2815 4.38M DISK 00:00:01 14-MAY-14
BP Key: 2815 Status: AVAILABLE Compressed: YES Tag: TAG20140514T173554
Piece Name: /backup/flash_recovery_are
List of Archived Logs in backup set 2815
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1104 9606561749 14-MAY-14 9606566542 14-MAY-14
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2816 Full 14.55M DISK 00:00:01 14-MAY-14
BP Key: 2816 Status: AVAILABLE Compressed: NO Tag: TAG20140514T173555
Piece Name: /backup/flash_recovery_are
Control File Included: Ckp SCN: 9606566553 Ckp time: 14-MAY-14
RMAN>
[oracle@qhdborcl rman]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Wed May 14 21:35:19 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: orcl (DBID=1758995321, not open)
RMAN> sql 'alter database open resetlogs';
using target database control file instead of recovery catalog
sql statement: alter database open resetlogs
RMAN-00571: ==========================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ==========================
RMAN-03009: failure of sql command on default channel at 05/14/2014 21:35:33
RMAN-11003: failure during parse/execution of SQL statement: alter database open resetlogs
ORA-00349: failure obtaining block size for '+DATA01/orcl/onlinelog/gr

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
SQL> ALTER DATABASE ADD LOGFILE GROUP 5 ('/u02/orcl/onlinelog/grou
ALTER DATABASE ADD LOGFILE GROUP 5 ('/u02/orcl/onlinelog/grou
*
ERROR at line 1:
ORA-00301: error in adding log file '/u02/orcl/onlinelog/group
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 1
SQL> alter system checkpoint;
alter system checkpoint
*
ERROR at line 1:
ORA-01109: database not open
SQL> alter database drop logfile group 10;
alter database drop logfile group 10
*
ERROR at line 1:
ORA-01567: dropping log 10 would leave less than 2 log files for instance VERIWIS2 (thread 2)
ORA-00312: online log 10 thread 2: '/u02/orcl/onlinelog/group
ORA-00312: online log 10 thread 2: '/u03/orcl/onlinelog/group






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
because seeing some errors in alert.log & trace file too.
ARC0: STARTING ARCH PROCESSES COMPLETE
Errors in file /u01/app/oracle/diag/rdbms
ORA-00600: internal error code, arguments: [kewrpwrc_2: Invalid SWRF version], [3], [5], [], [], [], [], [], [], [], [], []
Incident details in: /u01/app/oracle/diag/rdbms
Use ADRCI or Support Workbench to package the incident.
Example:
adrci> show incident
(lists incidents)
adrci> ips create package incident <incident_number>
This will create a package and assign it a package number. This is a logical package, and you will now need to create a physical package from it:
adrci>IPS GENERATE PACKAGE <package_number> IN path_on_server
Then FTP the package (zip file) to your PC and upload to your SR.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Example:
ORA-00600 [kewrpwrc_2: Invalid SWRF version], [3], [5]
From there, it will probably be able to gather more info on the issue from the support site and create a guided SR for you, where it fills in the rest of the SR and creates it.
This is discussed in
Bug 11817679 - ORA-00600 [KEWRPWRC_2: INVALID SWRF VERSION] WHEN CREATING BASELINE
which is closed as not a bug.
The error ORA-00600: [kewrpwrc_2: Invalid SWRF version], [3], [4] shows argument values 3 and 4 which are not equal and here it means that there is a version mismatch.
[3] means it is coming from 11.1 binary,
[4] means it is coming from the 11.2 binary,
and does not match the entry in wrh$_wr_control.swrf_versi
You are not allowed to create a baseline if the AWR schema is not up to date.
If this system still has version 3, then your upgrade from 11gR1 to 11gR2 was not done correctly, or not done successfully.
Refer to c1101000.sql you will see the update commented...
Rem ==========================
Rem == Update the SWRF_VERSION to the current version. ==
Rem == (11gR2 = SWRF Version 4) ==
Rem == This step must be the last step for the AWR ==
Rem == upgrade changes. Place all other AWR upgrade ==
Rem == changes above this. ==
Rem ==========================
SOLUTION
Review the c1101000.sql script and see if any of the other changes it makes have not been run.
This error would not be signaled if the upgrade was successful.
Please assist :(






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
**************************
INCIDENT_ID PROBLEM_KEY CREATE_TIME
-------------------- --------------------------
140777 ORA 600 [kkkichkrmappri:0=nr pend] 2014-05-15 05:12:09.530000 -05:00
140778 ORA 600 2014-05-15 05:12:13.616000 -05:00
140779 ORA 600 [kkkichkrmappri:0=nr pend] 2014-05-15 05:12:15.970000 -05:00
140780 ORA 600 2014-05-15 05:12:17.108000 -05:00
143645 ORA 600 [kewrpwrc_2: Invalid SWRF version] 2014-05-15 05:14:16.211000 -05:00
143653 ORA 7445 [kewmcord_calc1rdif()+254]
146527 ORA 600 [kewrpwrc_2: Invalid SWRF version] 2014-05-15 05:56:04.249000 -05:00
146535 ORA 7445 [kewmcord_calc1rdif()+254]
146599 ORA 600 [kkkichkrmappri:0=nr pend] 2014-05-15 08:01:52.834000 -05:00
146600 ORA 600 2014-05-15 08:01:54.886000 -05:00
146601 ORA 600 [kkkichkrmappri:0=nr pend] 2014-05-15 08:01:57.780000 -05:00
146602 ORA 600 2014-05-15 08:01:58.895000 -05:00
146603 ORA 7445 [eomg_migrate_if_oldnew()+
146604 ORA 7445 [eomg_migrate_if_oldnew()+
146605 ORA 7445 [eomg_migrate_if_oldnew()+
149416 ORA 600 [kewrpwrc_2: Invalid SWRF version] 2014-05-15 08:15:08.217000 -05:00
149424 ORA 7445 [kewmcord_calc1rdif()+254]
155178 ORA 600 [kewrpwrc_2: Invalid SWRF version] 2014-05-15 09:05:00.456000 -05:00
155186 ORA 7445 [kewmcord_calc1rdif()+254]
19 rows fetched
adrci> show problem
ADR Home = /u01/app/oracle/diag/rdbms
**************************
PROBLEM_ID PROBLEM_KEY LAST_INCIDENT LASTINC_TIME
-------------------- --------------------------
2 ORA 600 [kkkichkrmappri:0=nr pend] 146601 2014-05-15 08:01:57.780000 -05:00
1 ORA 600 146602 2014-05-15 08:01:58.895000 -05:00
5 ORA 7445 [eomg_migrate_if_oldnew()+
4 ORA 600 [kewrpwrc_2: Invalid SWRF version] 155178 2014-05-15 09:05:00.456000 -05:00
3 ORA 7445 [kewmcord_calc1rdif()+254]
5 rows fetched
adrci>
adrci> show problem
ADR Home = /u01/app/oracle/diag/rdbms
**************************
PROBLEM_ID PROBLEM_KEY LAST_INCIDENT LASTINC_TIME
-------------------- --------------------------
2 ORA 600 [kkkichkrmappri:0=nr pend] 146601 2014-05-15 08:01:57.780000 -05:00
1 ORA 600 146602 2014-05-15 08:01:58.895000 -05:00
5 ORA 7445 [eomg_migrate_if_oldnew()+
4 ORA 600 [kewrpwrc_2: Invalid SWRF version] 155178 2014-05-15 09:05:00.456000 -05:00
3 ORA 7445 [kewmcord_calc1rdif()+254]
5 rows fetched
adrci>
So for that one, you would need to do the following:
adrci> IPS CREATE PACKAGE PROBLEM 4
This will create a logical package with details about the problem including relevant trace files and any other relevant information that Oracle support needs. In ADR, a "problem" is a grouping of multiple occurrences of the same "incident". Each incident is a single occurrence of some type of issue/alert/error.
After packaging that problem, you need to generate a physical package. This will create a zip file on the filesystem of your choice, and you can then ftp it to your computer (if needed) and upload it to the SR for Oracle support to review. Assuming that the package created is number 1:
adrci> IPS GENERATE PACKAGE 1 IN /home/oracle/dba
Now, as for all of the other incidents and problems you have, it looks like you have numerous ORA-600 errors, which are internal errors, and several ORA-7445 errors, which are core dumps. Seems like your attempt to upgrade the database version from 11.1.0.7 to 11.2.0.4 by restoring to the new server may not have completed with desirable results. You need to run these errors by Oracle support to see what is causing them. Is this a temporary database (11.2.0.4) to pull some data out of? Or were you planning to use it long term?

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
SQL> drop user MDSYS cascade;
drop user MDSYS cascade
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04045: errors during recompilation/revalidation
ORA-01031: insufficient privileges
SQL> drop trigger mdsys.sdo_drop_user;
Trigger dropped.
SQL> drop user mdsys cascade;
drop user mdsys cascade
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [qmrcInitSGA], [57], [], [], [], [], [], [], [], [], [], []

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Doc ID 270588.1
Manual installation of Spatial 10g / 11g
Prerequisites
To be able to do a successful Spatial 10g / 11g installation you need to have the following products already installed:
JServer JAVA Virtual Machine
Oracle interMedia
Oracle XML Database
To verify if the products are installed and valid run:
SQL> select comp_id,version,status from dba_registry
where comp_id in ('JAVAVM','ORDIM','XDB');
To (re-)install JServer see: Note:276554.1
To (re-)install XDB see: Note:1292089.1
To (re-)install interMedia: Note:337415.1
Installation of Spatial
If the MDSYS user does NOT exist:
create the user MDSYS by running following command:
SQL> create user MDSYS identified by <password> default tablespace SYSAUX account lock;
grant the required privileges to MDSYS by running:
SQL> @?/md/admin/mdprivs.sql
If the MDSYS user already exists then you are advised to verify if the installation has been done correctly and de-install Spatial first in case of re-installation.
See the verification checks at the bottom of this note and a link to de-installation note.
Install Spatial by executing the steps shown below. Note you need to run this as a SYSDBA user!
SQL> connect / as sysdba
SQL> spool spatial_installation.lst
SQL> @?/md/admin/mdinst.sql
SQL> spool off
At the end of the installation some verification steps are automatically executed!
You can also manually run the the verification steps later on.
See the Spatial verification section further down this note.
It is strongly recommended that the MDSYS user account remains locked. The MDSYS user is
created with administrator privileges; therefore, it is important to protect this account from unauthorized
use. To lock the MDSYS user, connect as SYS and enter the following command:
SQL> alter user MDSYS account lock;
Verification of an Oracle 10g / 11g Spatial Installation
Execute the following steps to verify if Spatial is installed correctly:
SQL> connect / as sysdba
SQL> set serveroutput on
SQL> execute validate_sdo;
SQL> select comp_id, control, schema, version, status, comp_name from dba_registry
where comp_id='SDO';
SQL> select object_name, object_type, status from dba_objects
where owner='MDSYS' and status <> 'VALID'
order by object_name;
A sample valid 10.2.0.4.0 installation shows the following output:
SQL> execute validate_sdo;
PL/SQL procedure successfully completed.
SQL> select comp_id, control, schema, version, status, comp_name from dba_registry
where comp_id='SDO';
COMP_ID CONTROL
--------------------------
SCHEMA VERSION STATUS
--------------------------
COMP_NAME
--------------------------
SDO SYS
MDSYS 10.2.0.4.0 VALID
Spatial
no rows selected
NOTE:179472.1 - Steps for Manual De-installation of Oracle Spatial
NOTE:220481.1 - Master Note for Oracle Spatial and Oracle Locator Installation
Please advice, what do you think, it's so weird that when I execute this utlrp.sql script, after a while, it starts giving ... not connected to Oracle error.
Please assist, as you always, thanks cheers4beers for all your help and assistance.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Oracle Database
--
Questions
--
Followers
Top Experts
Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.