RMAN target / and sqlplus / as sysdba
Hello
Oracle Database 12 c Release 1 under Oracle Linux. 64 bit. Running on Virtual Box using Oracle OTN Developer day pre-defined VM.
[oracle@localhost ~]$ sqlplus hr/oracle SQL*Plus: Release 12.1.0.1.0 Production on Sat May 23 14:50:17 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. ERROR: ORA-28002: the password will expire within 7 days Last Successful login time: Sat May 23 2015 13:56:37 -04:00 Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options PDB1@ORCL> select status from v$instance; STATUS ------------ OPEN
[oracle@localhost ~]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Sat May 23 14:56:15 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. ERROR: ORA-01017: invalid username/password; logon denied Enter user-name:
[oracle@localhost ~]$ rman target / Recovery Manager: Release 12.1.0.1.0 - Production on Sat May 23 14:57:32 2015 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-00554: initialization of internal recovery manager package failed RMAN-04005: error from target database: ORA-01017: invalid username/password; logon denied [oracle@localhost ~]$
secondary groups are oper, s/n, oracle oinstall is the main group of the oracle user
groupadd oper usermod -g oinstall -G dba,oracle,oper oracle
that will allow me to connect to the user sys using sqlplus and rman with rman target /.
?
Thank you
I guess you TWO_TASK env var set, pointing perhaps to a service PDB name?
echo $TWO_TASK
unset TWO_TASK
sqlplus / as sysdba
Tags: Database
Similar Questions
-
difference between sqlplus /nolog and sqlplus "/ as sysdba".
HI ppl,
Please help me with this... This is an emergency of lill
On the oracle 10g platform, what is the difference between sqlplus /nolog and sqlplus "/ as sysdba".
concerningZombie says:
Thnx for the people of responses,but not giving sqlplus/nolog... Disable writing to the Oder, the session is opened in mode nologing IE?
concerning
Laughing out loud
Do not assume that everywhere where NOLOG is mentioned it means no. LOGGINg:-D. By sqlplus / nolog, you did nothing but had just the sql command prompt without really connecting as any user. You will still need to connect, by some users to start your work. This has NOTHING to do with do it again / cancel and anything else.
The other command will actually to connect as user Sys with Sysdba role.
That said, I STRONGLY suggest you to read this book for sure.
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/TOC.htmHTH
Aman... -
Hi all
Please let me know the difference between the two commands to rman
rman/rman@CATALOG target $ rman catalog.
and
$ rman catalog rman/rman@CATALOG target SYS/change_on_install@PROD
and
rman target $ /.
and
target of $ rman nocatalog /.
It comes to the recovery Site and the commands work properly.
Thanks in advance.
Kind regards
Bikram
Published by: user11977214 on June 15, 2010 23:53Could you please specify what's that I use
$ rman auxiliary sys/change_on_install@PRODthen it will directly connect to the auxiliary or the database target (i.e. PROD) this means that it will bypass the catalog database and will use the target database control file.
It will bypass the catalogue (nocatalog option uses) and connects to the auxiliary database. Auxiliary database is used to create a clone or standby database
-
sqlplus / as sysdba not connect after oracle xe name sid and service change
Hello
I changed the SID and Service name of Oracle XE "XE" to "CTR".
After that, I couldn't connect is no longer at the "sqlplus / as sysdba.
ERROR:
ORA-12560: TNS:protocol adapter error
My tnsnames.ora:
CTR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = ng-w2405ztfio0d)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CTR)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
My listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(= Extproc PROGRAM)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(= Extproc PROGRAM)
)
(SID_DESC =
(SID_NAME = CTR)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP) (HOST = ng-w2405ztfio0d)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (CTR)
Help me please
I thankHello
Yes, the host is Windows Server 2003.
I created a new service for the new SID. Followed all the steps to make the changeHow did you create the Oracle database Service? Have you used ORADIM to remove and create the new Instance?
http://download.Oracle.com/docs/CD/B19306_01/win.102/b14304/create.htm#i1006533
If you have created the new OracleServicePRTLservice, check who is started correctly.
Then try a connection as follows from a DOS window:
set ORACLE_SID=PRTL sqlplus / nolog connect / as sysdba
Hope this helps.
Best regards
Jean Valentine -
sqlplus / as sysdba with insufficient privileges error
I installed Oracle 10.2.0.1 on Windows XP. I then installed 10g Release 2 (10.2.0.4) Patch Set 3 for Microsoft Windows (32-bit). I imported a database using pump data and then tried to connect in Windows XP box so I could change the sys using password:
but I get the following error:sqlplus / as sysdba
My Windows XP box has access to two other databases that are located on a separate server. I then tried to connect using sqlplus to a user account that was on one of the other databases and it me connected. So my problem seems to be that when I enter:sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Mon Dec 6 07:58:51 2010 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. ERROR: ORA-01031: insufficient privileges
He thinks I'm trying to connect to one of the other servers. How to connect using the command above and the target of the Windows XP box, I'm trying to connect from? How can I specify the server that I want to connect to in the above command?sqlplus / as sysdba
Just found it!
Check $ORACLE_HOME/network/admin/sqlnet.ora file it provide SQLNET. AUTHENTICATION_SERVICES = (NTS)
then try again
-
How to activate the connection with sqlplus / as sysdba?
Hello
I downloaded the virtual appliance of the developer day since that's Developer Day - hands-on data application development
Connection with sqlplus sys/oracle as a sysdba work
But for our scripts, I need to connect to sqlplus / as sysdba (os user's oracle).
If I try to open a session with / as sysdba I get this:
[oracle@localhost ~]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Tue Nov 3 02:13:34 2015 Copyright (c) 1982, 2014, Oracle. All rights reserved. ERROR: ORA-01017: invalid username/password; logon denied Enter user-name:
How can I activate the oracle user to login with / as sysdba?
Thank you
Al
It seems that I found the solution:
http://www.stojanveselinovski.com/blog/2014/07/07/Oracle-12C-developer-days-VM/
Very funny this TWO_TASK / ORACLE_SID. :-)
CurrentY I can connect to sqlplus / as sysdba - I'm going to restore the virtual machine and try again if this is really the solution. :-)
-
I am faced with the following question:
On a database of eBS 11.1 data, I see that all known "sqlplus / as sysdba ' does not work, he responds with: become insufficient
I have the password and as far as I can see, so the SYS password gets validated positively, but then he says I have to use the SYSDBA role to login as SYS, and that's the problem.
So, I'm looking for a solution for this problem. Maybe if I can connect as SYS, but WITHOUT the SYSDBA role, which can solve the problem as well.
What happened to cause this (because it must have worked in a first time), there was a database upgrade, which may have been the cause of this problem.
The eBS environment is a Vision 12.1.3
It is not a production, or a copy of a production database (to be clear about this)
PL see the troubleshooting steps in MOS Docs 761830.1 and 730067.1
HTH
Srini -
Security problem for sqlplus / as sysdba
Hi all
11.2.0.1
My boss is not comfortable with the command "sqlplus / as sysdba. It seems would prefer that a name of user and password be used or forced? as in 'sqlplus sys/change_on_install as sysdba'
Is there really an advantage or a drawback of this command in terms of security?
Your comment is very much appreciated.
Merry Christmas to all!
Thank you
pK
In addition to the response of Hemant see this demo:
C:\Windows\System32>sqlplus / as sysdba
SQL * more: Production release 11.2.0.1.0 Thu Dec 26 10:58:07 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
C:\Windows\System32>type E:\app\serverroom\product\11.2.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora
sqlnet.ora # Network Configuration file: E:\app\serverroom\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers can opt for
# install 'Software Only', this file does not exist and without the native
authentication #, they will not be able to connect to the database on NT.
SQLNET. AUTHENTICATION_SERVICES = (NTS)
NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
I am able to connect as / dBA because I SQLNET. AUTHENTICATION_SERVICES = (NTS)
OK, now I am just cheigng NTS to ZERO and now tries to connect / as sydba:
C:\Windows\System32>type E:\app\serverroom\product\11.2.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora
sqlnet.ora # Network Configuration file: E:\app\serverroom\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers can opt for
# install 'Software Only', this file does not exist and without the native
authentication #, they will not be able to connect to the database on NT.
SQLNET. AUTHENTICATION_SERVICES = (NONE)
NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
C:\Windows\System32>sqlplus / as sysdba
SQL * more: Production release 11.2.0.1.0 Thu Dec 26 11:02:31 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter the user name:
ERROR:
ORA-01017: name of user and password invalid. connection refused
Enter the user name:
ERROR:
ORA-01017: name of user and password invalid. connection refused
SP2-0157: unable to connect to ORACLE after 3 attempts, leaving SQL * more
SYS C:\Windows\System32>sqlplus / * as sysdba
SQL * more: Production release 11.2.0.1.0 Thu Dec 26 11:02:43 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
C:\Windows\System32 >
So, just change SQLNET. AUTHENTICATION_SERVICES (NTS) in SQLNET. AUTHENTICATION_SERVICES (None) in sqlnet.ora and you did.
Concerning
Girish Sharma
-
Removal of the log archiving using RMAN Target in Oracle 10 g
Hi all
Recently, I noticed that archive logs have been 102 GBs out of the car and I need to free up space. When I tried to connect using the RMAN catalog
I got error message likeconnect catalog user@db
But I could get through the useRMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-06445: cannot connect to recovery catalog after NOCATALOG has been used
My query is that I can useconnect target user@db
as shown in [how to remove the log file archive | https://forums.oracle.com/forums/thread.jspa?threadID=2321257 & start = 0 & tstart = 0]RMAN> delete noprompt expired archivelog all;
Or I'll take another approach to remove obsolete archive logs?
Kind regards
* 009 *.Hello;
Recently, I noticed that archive logs have been 102 GBs out of the car and I need to free up space. When I tried to connect using the RMAN catalog
connect catalog user@db
I got error message like
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-06445: cannot connect to recovery catalog after NOCATALOG has been used
But I could get through the use
connect target user@db
Are you trying to connect through Grid control? If you connect via a script, then please post its content.
Make sure that you are not connected to the database target using "nocatalog.rman target sys/
@ catalog / @ My query is that I can use
RMAN> delete noprompt expired archivelog all;
as shown in [how to remove the log file archive | https://forums.Oracle.com/forums/thread.jspa?threadID=2321257&Start=0&tstart=0]
Or I'll take another approach to remove obsolete archive logs?Kind regards
* 009 *.These archives are saved? The command above does not update the RMAN Repository if in case, the archives have been manually delete at the OS level.
I recommend you save these records and then remove them.RMAN>backup archivelog all not backedup 1 times delete input;
If these archives are already saved and were not deleted from the disk, then you can use the below command
RMAN>delete force noprompt archivelog all completed before 'SYSDATE-n';
where "n" is the number of days of delay on the current date. Be sure to check if these archives have been saved before deleting.
Kind regards
Shivananda -
ORA-01031: insufficient when privileges loggin under sqlplus "/ as sysdba".
I recently got a brand new box of Solaris. Have restored the ORacle home from a live server.
then went to restore a database to a tape.
Everything is made of fine.
However I can't seem to open as
$> sqlplus "/ as sysdba".
I can only open as
$> sqlplus/nolog
then
SQL > connect sys/password as sysdba
I closed the database and recreated password file
orapwd file = $ORACLE_HOME/dbs/orapwFMZ password = entries passowrd = 50
Tried but the same answer... a coil which is below.
$ sqlplus "/ as sysdba".
SQL * more: version 9.2.0.8.0 - Production on Thu Apr 5 09:49:23 2012
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter the user name: ^ C ^ X ^ Z
SQL > connect / as sysdba
ERROR:
ORA-01031: insufficient privileges
$ sqlplus/nolog
SQL * more: version 9.2.0.8.0 - Production on Thu Apr 5 09:49:36 2012
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL > connect sys/password as sysdba
Connect to an instance is idle.
SQL > startup
ORACLE instance started.
Total System Global Area 68386816 bytes
Size bytes 729088 fixed
54525952 variable size bytes
Buffers data 12582912 bytes
Redo buffers 548864 bytes
Mounted database.
Open database.
SQL > shutdown immediate
The database is closed.
The database is dismounted.
ORACLE instance stops.
I've included a list of parameters below FYI
SQL > show the distance parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
real chain of remote_archive_enable
remote_dependencies_mode string TIMESTAMP
remote_listener chain
Remote_login_passwordfile channel SHARED
REMOTE_OS_AUTHENT Boolean TRUE
remote_os_roles boolean FALSE
Please can someone help.
Best regards
M
Published by: user5856470 on April 5, 2012 02:11There is something wrong at the level of the BONE. Check if the user that you are connected to the computer (usually oracle) is part of the ORA_DBA group.
Good luck
Nirmal
-
RMAN-06025 and double standby: no backup of the log 1 thread
Hi all
I use oracle 10.2.0.3.
I tried to make a duplicate of standby restore/recovery
from a band. The duplicate takes about 15 hours. So, upon arrival
I got the following error:
Well,.Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: '+DATA/PROJ/datafile/system.346.764664523' released channel: c1 released channel: c2 released channel: c3 released channel: c4 released channel: ac1 released channel: ac2 released channel: ac3 released channel: ac4 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 10/28/2011 01:19:11 RMAN-03015: error occurred in stored script Memory Script RMAN-06053: unable to perform media recovery because of missing log RMAN-06025: no backup of log thread 1 seq 35000 lowscn 74343144157 found to restore . . .
The duplicate database is restored. It remains only the archivelogs.
If I try to backup all archivelogs again and to run the double once more,
The data files already restored are underwritten, or RMAN ALL restart again, RESTORE
ALL DATA FILES?
The database has 600 GB. So, if I start again, it's a big problem.
What can I do to fix this?
Thank you very much!!!This is an Enterprise edition? Have you configured in Eve and dataguard on primary configuration?
Which command you gave to duplicate?
RMAN > target database duplicate for standby?then start MRP from sleep mode: -.
SQL > recover database managed altert disonnect waiting database session;Main post office: -.
Select the code from ds.dest_id
ad.status
ds.database_mode db_mode
type ad.archiver
ds.recovery_mode
ds.protection_mode
, ds.standby_logfile_count 'LAR '.
Active ds.standby_logfile_active
ds.archived_seq #.
v $ archive_dest_status ds
, announcement of v$ archive_dest
where ds.dest_id = ad.dest_id
and ad.status! = 'INACTIVE '.
order by
DS.dest_id
/The duplicate database is restored. It remains only the archivelogs.
If I try to backup all archivelogs again and to run the double once more,
The data files already restored are underwritten, or RMAN ALL restart again, RESTORE
ALL DATA FILES?
The database has 600 GB. So, if I start again, it's a big problem.First thing is that you can make two copies because the database is already mounted...
Why you want to restore again?Just start MRP and post if no errors.
-
Question about the connection using the "sqlplus / as sysdba.
Good afternoon
The command:
worked very well for the Oracle server. When I go to a client, it does not work even if I specify the correct instance. On the client, I can able to connect using one of these two commands:sqlplus / as sysdba
The question is: is the form "/ as sysdba" limited to used on the Oracle server and not available for customers?sqlplus.exe sys/abc123@"orahost.john.local:1521/dbca.john.local" as sysdba or sqlplus.exe sys/abc123@dbca as sysdba but not sqlplus / as sysdba or sqlplus /@dbca as sysdba
Thank you for your help,
John.is the form "/ as sysdba" limited to use on the Oracle Server
Yes
and not available for customers?
Yes
-
Hello
Server: windows
version (Oracle): 10.1.0.2.0
Its not letting me connect using sqlplus / as sysdba command...
However I can connect with the connection string using sys...
I added in the ora_dba under Computer Management Group
SQLNET.ora also contains the NTS parameter
Help, please
Arun KumarHi Arun,
: \>sqlplus ' [email protected]/sys as sysdba'
Here the name of your db is BPPR but you set local C:\>set = bprr and try?
Ravi
-
Create the new database of complete hot RMAN, atrchivelog and backup control files
Hi all
I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.
Here are my steps
(1) to restore the control file
#! / bin/sh
ORACLE_SID = P1234
export ORACLE_SID
RMAN nocatalog target / < < EOF | Tee restorecontrol.out
startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
the value of DBID 6767676;
run
{
allocate channel d1 type disk;
controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
change the editing of the database;
}
EXPRESSIONS OF FOLKLORE
(2) database stop then restart the database with the new contraol file using pfile.
(3) restore data files
#! / bin/sh
ORACLE_SID = P1234
export ORACLE_SID
RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
Run {}
the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
restore the database;
switch datafile;
}
EXPRESSIONS OF FOLKLORE
ORA-27063: number of bytes read or written is incorrect
SVR4 error: 28: no space is available on the device
Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.
Can you please let me know how I can restore it.
I need to change the names of database after the successful restoration.
DBVERSION 10.2.0.1
operating system: solaris 10
Thanks in advance.Hello..
Do you have free space? If Yes, then you can try: -.
RUN {}
SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
RESTORE THE 3 DATA FILE;
DATAFILE 3 SWITCH;
}[http://www.oracle-base.com/articles/9i/DBNEWID.php]
Anand
-
RMAN - Catalog and ControlFile Recovery
I recorded rock database (same host) and Fatima databases (in another machine) in the RECOVERY CATALOG.
I m sticking with Faure database backup using the recovery catalog
RMAN >
Complete recovery manager.
^ C
H:\ > rman target sys/farooq@farooq catalog rman2/cat@rock
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Sep 8 14:41:17 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: FAURE (DBID = 1820635189)
connected to the recovery catalog database
RMAN > register database;
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the register command to the default channel on 2008-09-08 14:41:37
RMAN-20002: target database is already registered in the recovery catalog
RMAN > outline report;
Report of the database schema
List of permanent data files
===========================
Size (MB) Tablespace RB segs Datafile file name
---- -------- -------------------- ------- ------------------------
1 YES D:\ORADATA\FAROOQ\SYSTEM01 480 SYSTEM. DBF
2 35 UNDOTBS1 D:\ORADATA\FAROOQ\UNDOTBS01 YES. DBF
SYSAUX 3 250 NO D:\ORADATA\FAROOQ\SYSAUX01. DBF
4 5 USERS WITHOUT D:\ORADATA\FAROOQ\USERS01. DBF
5 100 EXAMPLE NO D:\ORADATA\FAROOQ\EXAMPLE01. DBF
RMAN > list backup;
RMAN > backup as incremental compressed backupset of level 0 database more archivelog;
From backup 08-SEP-08
Current archived log
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of command thus backup archivelog at 2008-09-08 14:43:03
RMAN-03014: implicit recovery catalog Resync failed
RMAN-06004: error ORACLE recovery catalog database: RMAN-20020: incarnation of the database not defined
RMAN > list incarnation of database;
List of Incarnations of the database
DB key Inc key STATE ID DB name DB reset reset time SNA
------- ------- -------- ---------------- --- ---------- ----------
3641 3649 FAURE 1820635189 PARENT 534907 29 JULY 08
FAURE 3641 3642 1820635189 CURRENT 695424 08-SEP-08
RMAN > RESET DATABASE to incarnation 3642
2 >.
database restore the incarnation 3642
RMAN > backup as incremental compressed backupset of level 0 database more archivelog;
From backup 08-SEP-08
Current archived log
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 142 devtype = DISK
channel ORA_DISK_1: starting from backupset journal archive compressed
channel ORA_DISK_1: specification of archive log backup set
archive log entry thread = 1 sequence 1 recid = 4 = 664886867 stamp =
archive log entry thread = 1 sequence 2 recid = 5 = 664888152 stamp =
archive log entry thread = 1 sequence = recid 3 = 6 = 664888938 stamp
archive log entry thread = 1 sequence 4 recid = 7 = 664889572 stamp =
archive log entry thread = 1 sequence 5 recid = 8 = 664889658 stamp =
archive log entry thread = 1 sequence 6 recid = 9 = 664891871 stamp =
archive log entry thread = 1 sequence 7 recid = 10 = 664892590 stamp =
archive log entry thread = 1 sequence 8 recid = 11 = 664900983 stamp =
archive log entry thread = 1 sequence 9 recid = 12 = 664902190 stamp =
channel ORA_DISK_1: from room 1 to 08 - SEP-08
channel ORA_DISK_1: finished piece 1 to 08 - SEP-08
piece handle = D:\ORADATA\FLASH_RECOVERY_AREA\FAROOQ\BACKUPSET\2008_09_08\O1_MF_ANNNN_TAG20080908T150314_4D9Y35PK_. Tag BKP = comment TAG20080908T150314 = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:26
channel ORA_DISK_1: starting from backupset journal archive compressed
channel ORA_DISK_1: specification of archive log backup set
archive log entry thread = 1 sequence 8 recid = 1 stamp = 664886398 =
archive log entry thread = 1 sequence 9 recid = 2 = 664886399 stamp =
archive log entry thread = 1 sequence 10 recid = 3 = 664886403 stamp =
channel ORA_DISK_1: from room 1 to 08 - SEP-08
channel ORA_DISK_1: finished piece 1 to 08 - SEP-08
piece handle = D:\ORADATA\FLASH_RECOVERY_AREA\FAROOQ\BACKUPSET\2008_09_08\O1_MF_ANNNN_TAG20080908T150314_4D9Y407K_. Tag BKP = comment TAG20080908T150314 = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:09
Backup finished 08-SEP-08
From backup 08-SEP-08
using channel ORA_DISK_1
channel ORA_DISK_1: additional start-up compressed 0 datafile backupset
channel ORA_DISK_1: specifying datafile (s) in backupset
input datafile fno = 00001 name = D:\ORADATA\FAROOQ\SYSTEM01. DBF
input datafile fno = 00003 name = D:\ORADATA\FAROOQ\SYSAUX01. DBF
input datafile fno = 00005 name = D:\ORADATA\FAROOQ\EXAMPLE01. DBF
input datafile fno = name 00002 = D:\ORADATA\FAROOQ\UNDOTBS01. DBF
input datafile fno = 00004 name = D:\ORADATA\FAROOQ\USERS01. DBF
channel ORA_DISK_1: from room 1 to 08 - SEP-08
channel ORA_DISK_1: finished piece 1 to 08 - SEP-08
piece handle = D:\ORADATA\FLASH_RECOVERY_AREA\FAROOQ\BACKUPSET\2008_09_08\O1_MF_NNND0_TAG20080908T150351_4D9Y49WW_. Tag BKP = comment TAG20080908T150351 = NONE
channel ORA_DISK_1: complete set of backups, time: 00:01:15
Backup finished 08-SEP-08
From backup 08-SEP-08
Current archived log
using channel ORA_DISK_1
channel ORA_DISK_1: starting from backupset journal archive compressed
channel ORA_DISK_1: specification of archive log backup set
archive log entry thread = 1 sequence 10 recid = 13 = 664902308 stamp =
channel ORA_DISK_1: from room 1 to 08 - SEP-08
channel ORA_DISK_1: finished piece 1 to 08 - SEP-08
piece handle = D:\ORADATA\FLASH_RECOVERY_AREA\FAROOQ\BACKUPSET\2008_09_08\O1_MF_ANNNN_TAG20080908T150512_4D9Y6T1D_. Tag BKP = comment TAG20080908T150512 = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:02
Backup finished 08-SEP-08
From control file and SPFILE Autobackup 08-SEP-08
piece handle = D:\ORACLE\RMAN_BACKUP\CTL_SP_BAK_C-1820635189-20080908-09 comment = NONE
Control finished and Autobackup SPFILE file 08-SEP-08
RMAN > list backup;
Backup list
===============
S LV TY Device Type delay #Pieces compressed #Copies Tag key
------- -- -- - ----------- --------------- ------- ------- ---------- ---
4615 DISC 08-SEP-08 1 1 YES TAG20080908T150314
4617 B 0 A DRIVE 08-SEP-08 1 1 YES TAG20080908T150351
4650 DISC 08-SEP-08 1 1 YES TAG20080908T150512
4670 HAS NO DISK 1 1 08 - SEP - 08 NO TAG20080908T150517
RMAN >
Now, I m conneting to Faure - target database and obtaining the same information from the control file backup.
H:\ > rman target sys/farooq@farooq
Recovery Manager: Release 10.2.0.1.0 - Production on Mon 8 Sep 15:05:38 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: FAURE (DBID = 1820635189)
RMAN > LIST BACKUP SUMMARY;
using the control file of the target instead of recovery catalog database
Backup list
===============
S LV TY Device Type delay #Pieces compressed #Copies Tag key
------- -- -- - ----------- --------------- ------- ------- ---------- ---
21. A DRIVE 08-SEP-08 1 1 YES TAG20080908T150314
22. A DRIVE 08-SEP-08 1 1 YES TAG20080908T150314
23 B 0 A DRIVE 08-SEP-08 1 1 YES TAG20080908T150351
24. A DRIVE 08-SEP-08 1 1 YES TAG20080908T150512
25 A NO DISK 1 1 08 - SEP - 08 NO TAG20080908T150517
My question: why are the information stored in the database control file (Faure) target so that its stored in the recovery catalog?Hello
By default, RMAN stored metadata in the file control, all the RMAN is first written to control the file and then catalog of recovery if leaves. For example, when rman creates a new backupset, you can view the information in the v$ backup_set and you can also view the same information of the recovery RC_BAKCUP_SET catalog views.
So every change repository is stored in two places... Control file and optionally recovery_catalogThe catalog of recovery of the RMAN Repository versions are stored in database tables and version control repository os file stored as files in with in the control file.
-Pavan Kumar N
Maybe you are looking for
-
Not call explanation. I put clear history when I close it, but remember active connections, and when I reopen it the Firefox browser, I have to log in again.
-
Hello We managed to connect our Surface Pro 3 Windows 10 running on a mobile printers HP OfficeJet 200 series using a Wi - Fi Direct connection not wireless. The problem is that whenever we turn the printer off or go to sleep Surface pro cannot re es
-
After the upgrade of Windows 10, I need to set up my HP printer so work functions. I've looked everywhere but can't find my CD for my Deskjet 1050 all-in-One J410 series printer. I have everything, including my FedEx slip sent to me with my current
-
total gray of audio devices audio
His total gray of Audio devices. No icon of volume on the taskbar for weeks. Help, please.
-
start tests: failure of all the...
All my tests startup fail, example disc, I get the ID of the fault: OGF8WM-5756hq-xdoo3f-61bj03 the tuneup, I get the following ID: OGF8WM-5756hq-xdoo3f-60TA03. Does this mean that my hard drive needs to be replaced? the book is a hp pavilion dv7 int