Sqldeveloper virtue sysdba connection
I'm a total newbie in Oracle.
I installed Oracle 11 g R2 XE.
Also, I installed 3.2.20.09 SqlDeveloper version.
I have Java Version 7 update 25
I generated the auto connections, and I have 2 connections. One is: sysdba of virtue and the other: System-XE
I connect to the XE system successfully, but when I try to connect as sysdba in SQLdeveloper (at the same time I can connect the hollow SQL command line) I get this error:
java.lang.Error: Incompatible version of libocijdbc [Jdbc:112030, Jdbc - OCI:112020]
to oracle.jdbc.driver.T2CConnection$ 1.run(T2CConnection.java:3557)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3550)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:266)
to oracle.jdbc.driver.PhysicalConnection. < init > (PhysicalConnection.java:552)
to oracle.jdbc.driver.T2CConnection. < init > (T2CConnection.java:162)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:526)
at oracle.jdeveloper.db.adapter.AbstractConnectionCreator.getConnection(AbstractConnectionCreator.java:153)
at oracle.dbtools.raptor.standalone.connection.RaptorConnectionCreator.getConnection(RaptorConnectionCreator.java:195)
at oracle.dbtools.raptor.dialogs.conn.ConnectionPrompt.promptForPassword(ConnectionPrompt.java:67)
at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:321)
at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:254)
at oracle.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:60)
at oracle.javatools.db.DatabaseFactory.createConnection(DatabaseFactory.java:534)
at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:208)
at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:607)
to oracle.dbtools.raptor.utils.Connections$ ConnectionInfo.getDatabase (Connections.java:172)
at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1064)
at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1045)
at oracle.dbtools.raptor.navigator.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:115)
at oracle.dbtools.raptor.navigator.AbstractConnectionNode.getConnection(AbstractConnectionNode.java:30)
at oracle.dbtools.raptor.navigator.ConnectionFilter.getFactory(ConnectionFilter.java:94)
to oracle.dbtools.raptor.navigator.ConnectionFilter$ 1.doWork(ConnectionFilter.java:119)
to oracle.dbtools.raptor.navigator.ConnectionFilter$ 1.doWork(ConnectionFilter.java:104)
at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
to java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ RaptorFutureTask.run (RaptorTaskManager.java:515)
to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)
to java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
any help would be really appreciated since now I was looking for the solution almost 3 hours.
I solved it on my own. I replaced the jdbc jar files in the jdbc/lib folder and now it works. just downgraded jdbc drivers to version 11.2.0.2
Tags: Database
Similar Questions
-
Oracle instance is running but sqlplus "virtue sysdba" says connected to idle.
Hello
Oracle RAC is running (started the CARS with "srvctl start database hacmp - d") but when I am trying to connect to the database using sqlplus 'virtue sysdba' he says 'connected to an idle instance.
No idea what could be the problem here?
I have exported ORACLE_SID.
bash-3. $00 ps - ef | grep pmon
Oracle 507946 798870 0 17:23:42 pts/0 0:00 grep pmon
Oracle 872584 1 0 17:03:16 - 0:00 ora_pmon_hacmp1
bash-3. $00 echo $ORACLE_HOME
/ u01/app/oracle /.
bash-3. $ 00
bash-3. $00 echo $ORACLE_SID
hacmp1
bash-3. $ 00
bash-3. $ 00
bash-3. $00 sqlplus "virtue sysdba".
SQL * more: Release 10.2.0.4.0 - Production on Mon Sep 14 17:24:43 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connect to an instance is idle.
SQLTry to remove the ending ' / ' the ORACLE_HOME environment variable.
-
sqlplus 'virtue sysdba' = >; ora-01017
Hi all
I have a 11.2.0.4 database installed on Linux 6.5 customer virtualbox.
I access the database through the client linux itself.
I was able to initially managed to connect as SYS, and I've updated the password using the alter command.
However, I am now unable to connect externally as SYS using third-party applications such as developer of Toad or sql. (Yes I put it to SYSDBA) (I can connect applications, so external connections are accepted).
And when I try to open a session with the command of "virtue sysdba" sqlplus, I get the error message ora-0107 name username/password invalid.
I logged in as the SYSTEM user and changed the password once again, but still no luck. I made sure that we do not use a password file.
Can anyone suggest anything else to try?
See you soon,.
Russ.
sqlplus sys/password@EBSDB AS SYSDBA
-
sqldeveloper could not connect the newly created user
Here is my description of my computer and software
# OS - > ubuntu 10.04 (32 bit)
# DB-> 10 g XE
# Request Express - > version 4.0.2
# Sqldeveloper-> version 3.0.04
I installed 10g XE in my ubuntu 10.04 (32-bit) with success and you then unblock account HR. After that I upgraded application Express 2 to 4. Then created a new "worksapce' with user name and password.
I can access with success of HR, sys and system account of sqldeveloper. But when I try to access newly created valid workspace with his user name and password I could not do that. You can see more details, [see here | http://www.youtube.com/watch?v=_G_EeBgZ1KY].
But in the past, I can connect newly created Workspace even as human resources account. So what's the problem. Can you guyz guide me to conncet it.
Thanks in advance>
I can access with success of HR, sys and system account of sqldeveloper. But when I try to access newly created valid workspace with his user name and password I couldn't do that
>
If you have a problem or a question about Apex post in this forum
Oracle Application Express (APEX)In sql developer, you can only connect to users of Oracle (schemas), not workspaces. So unless you have a user called "admin" Oracle, you won't be able to connect. When you created the workspace you may reuse an existing schema or provide a name for the new schema. These patterns are what you would connect to.
In the nav tree open the tree of the user "sys" and see the list of "other users". This subtree will contain ALL Oracle users. You must log on to one of them.
-
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
-
Oracle Instance shows connected, yet am ORA-01012: not connected
Hi experts,
Please help to connect to my database, which unfortunately happened an hour before, but now it does not work
In the meantime I did change some stuff for my home directory permission, but later again to original permissions.
It's still haunt me...
I created my SID/HOST/PATH perfectly, attempted to verify the process at the level of the BONE, they are less, still nothing happens if the database is in place and running.
I can see it at the level of the BONE and in the alerts log...
==================
Oracle@DAP-CSW-ORA01/home/Oracle > ps - ef | grep pmon
Oracle 3145946 1 0 18 Feb - 0:44 asm_pmon_ + ASM1
Oracle 7995430 1 0 18 Feb - 0:50 ora_pmon_adobe_2
Oracle 13828212 11141232 0 14:59:09 pts/0 0:00 grep pmon
Oracle 7471386 1 0 18 Feb - 0:57 ora_pmon_fxss_1
Oracle@DAP-CSW-ORA01/home/Oracle > sqlplus
SQL * more: Production of liberation 11.2.0.3.0 Thu Feb 21 14:59:12 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected.
SQL > show user
The USER is "SYS".
SQL > select instance_name, status from v$ Instance;
Select instance_name, status of v$ Instance
*
ERROR on line 1:
ORA-01012: not connected
Process ID: 0
Session IDs: serial number 0: 0Now I understand... It is not a problem with something another authorization makes this mess... Although unknown...
I have a database rebounded after taking permission from the team of apps, now it works perfectly... no problem whatsoever...
But I want to know why... I don't want to deal more...
Whenever oracle installs [YES], it knows what to assign permissions and what is needed.
You should not disturb them, who are the users, groups, executables, read, write permissions before and after any change and now?
And I wanted it is interesting to know why you wanted to test these things on the production. Its like playing with fire, so be careful, otherwise it costs a lot :) -
Connect the restricted session
Hello
I am aware that from 10 g users (even with sysdba or session limited privs) cannot connect to an instance in session restricted by the listener.
I have an instance of database where I CAN connect to an instance in session restricted (when he is tried with a user with restricted session privilege) via earpiece. All but one single service of the lsnrctl status is RESTRICTED view.
I do not have UR = in my tnsnames file.
I do not use the name of listener LISTENER default port 1521. Name of the listener is LISTENER_HOST1. This could be the reason for this extra service? If so, how to stop this kind of connection via the listening port?
Version Oracle 11.1.0.7
>
sqlplus
SQL * more: version 11.1.0.7.0 - Production on Thu Mar 1 13:32:49 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > alter system enable restricted session;
Modified system.
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
/ opt/Oracle/base/admin/Network
Oracle@host1[TESTDB] $ sqlplus admin@TESTDB
SQL * more: version 11.1.0.7.0 - Production on Thu Mar 1 13:33:34 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter the password:
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > select connections from v$ instance;
DIAL-UP CONNECTIONS
----------
LIMITED
SQL >
SQL > sho served parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
service name string TESTDB.loc.org
SQL > local_l setting sho
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
LOCAL_LISTENER string TESTDB
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Oracle@host1[TESTDB] $ lsnrctl status LISTENER_host1
LSNRCTL for Linux: Version 11.1.0.7.0 - Production March 1, 2012 13:34:16
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=host1.loc.org) (PORT = 1521))
STATUS of the LISTENER
------------------------
Alias LISTENER_host1
Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Early January 23, 2012 07:01
Running time 38 days 6 h 33 min 15 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /opt/oracle/base/admin/network/listener.ora file
The listener log file /opt/Oracle/base/product/11.1.0/dbhome_1/network/log/listener_host1.log
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=host1.loc.org) (PORT = 1521)))
Summary of services...
Service 'TESTDB' is 1 instance (s).
Instance "TESTDB", status UNKNOWN, has 1 operation for this service...
Service 'TESTDB.muc.allianz' has 1 instance (s).
Instance "TESTDB", RESTRICTED status, has 1 operation for this service...
Service 'TESTDB_XPT.muc.allianz' has 1 instance (s).
Instance "TESTDB", RESTRICTED status, has 1 operation for this service...
Service with status UNKNOWN results to have a static SID_LIST in the listener.ora - and it will probably be the entry that allows the connection.
This shutdown behavior should be as simple as to remove the database from the SID_LIST, or remove the entire SID_LIST section, listener.ora and restart the listener so that only the registered services are dynamically available.
-
remote connection to the database
Hi guys,.
I am running Oracle 9i 9.2.0.1.0 Solaris version.
I started my database without any error.
Now, when I connect as sys to the o/s I can connect but when I connect remotely I get an error:
$ sqlplus/nolog
SQL > conn virtue sysdba
Connected.
SQL >
But when I run:
SQL > conn username/password@SID
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 error: 2: no such file or directory
SQL >
This could be the cause of this error?
The database worked fine until we have about a hardware change.
Help, please!Hello
Do tnsping
ok? Your tns entry in the tnsnames.ora file is set correctly. Kind regards
Anand -
Standby configuration primary Oracle 11.2.0.1.0
Hi all
I have a Setup primary and physical the previous day. I'm planning a permutation between primary and standby. Both my primary and standby is now in phase and I took a few steps, what is mentioned below: -.
Primary: -.
SQL > select max(sequence#) from v$ log_history;
MAX(SEQUENCE#)
--------------
146
Standby time: -.
SQL > select max(sequence#) from v$ log_history;
MAX(SEQUENCE#)
--------------
146
My switchover_status of the primary database shows 'to the rescue', but my switchover_status watch watch "unauthorized." Please suggest in that case I can go for a failover. I'm waiting for all your contributions.
Kind regards
ArijtHello
This is the real situation. First pass at the Stand By and Stand By unauthorized.A few steps to make the transition to digital:
-If YOU do not THE BROKER CONFIGURED:
VALIDATE PRIMARY AND STANDBY
SQL > select db_unique_name, open_mode, database_role, v database name $;
VALIDATE THE LGWR APPLY (ON ALL THE NŒUDS IN THE CASE OF CARS)
SQL > SELECT client_process, process, sequence #, status from v$ managed_standby;
VALIDATE THE SEQUENCE OF LOGS (IT DOES NOT NECESSARILY IMPLY THAT YOUR DG IS OK)
Select thread #, max(sequence#) of the newspaper of v$
Group thread #;VALIDATE THE ALERT. JOURNAL
Check if the last SEQ # applies very well.
PREPARE DATABASE BACKUP
SQL > alter recover managed standby database disconnect log file using current;
SQL > select db_unique_name, open_mode, database_role, v database name $;
KEEP ONLY ONE INSTANCE OF PRIMARY (BEST PRACTICE)
It is not mandatory, but I usually keep a single NŒUD RUNING on PRIMARY and a NŒUD ON STANDBY (CASE of THE CARS)MAKING THE SWITCH TO TEACHING ELEMENTARY SCHOOL (PRIMARY-> STANDBY)
SQL > ALTER DATABASE COMMIT TO SWITCH STANDBY MODE PHYSICS WITH THE STOP OF THE SESSION;
VALIDATE THE ALERT. LOG (must display the following message on the PRIMARY ALERT)
ARCH: Noswitch of archiving the thread 1, 329 sequence
ARCH: End-of-Redo archive thread 1 sequence 329 branch
ARCH: LGWR is actively archiving destination LOG_ARCHIVE_DEST_2VALIDATE THE MOVE TO STANDBY STATUS (SHOULD BE IN ELEMENTARY SCHOOL)
SQL > SELECT switchover_status from v$ database;
SWITCHOVER_STATUS
--------------------
AT THE ELEMENTARY LEVELVALIDATE THE TRANSITION TO THE STATUS OF PRIMARY EDUCATION (SHOULD BE NECESSARY RECOVERY)
SQL > SELECT switchover_status from v$ database;
SWITCHOVER_STATUS
--------------------
RECOVERY NEEDEDENGAGE THE STANDBY TO PRIMARY
SQL > ALTER DATABASE COMMIT TO THE MOVE TO THE PRIMARY WITH THE STOP OF THE SESSION;
OPEN THE DAY BEFORE GOT R & W
SQL > ALTER DATABASE OPEN;
Database altered.
PREPARE THE PRIMARIES TO GET THE ROLE OF EVE
SQL > SHUTDOWN IMMEDIATE;
ORA-01092: ORACLE instance is complete. Disconnection forced
SQL >
SQL > conn virtue sysdba
Connect to an instance is idle.
SQL >
SQL > STARTUP MOUNT;
ORACLE instance started.Total System Global Area 1046224896 bytes
Bytes of size 1348796 fixed
444599108 variable size bytes
595591168 of database buffers bytes
Redo buffers 4685824 bytes
Mounted database.
SQL >
SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT LOG FILE USING CURRENT;Database altered.
VALIDATE IF PRIMARY IS OK (APPLICATION LOG)
SQL > select process, status, client_process, sequence #.
v $ managed_standby;STATUS OF PROCESS CLIENT_P SEQUENCE #.
--------- ------------ -------- ----------
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
ARCH ARCH CONNECTED 0
MRP0 APPLYING_LOG N / 335
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE LGWR 335# #THE END #.
-IF YOU HAVE CONFIGURED BROKER: (MUCH EASIER)
REMEMBER, IF THE CONFIGURATION IS OK FOR TEACHING PRIMARY SCHOOL
There are a lot of configuration here, if you need to configure it, I recommend to read the official Documentation of the DG.DGMGRL > see THE db DATABASE
Database - ormtp1
Role: PRIMARY
State of destination: TRANSPORT-WE
Occurrence (s):
DB1
DB2
db3
DB4State of the database:
SUCCESSLOG SWITCH ON PRIMARY(IT IS NOT NECESSARY, ITs just a BEST PRATICE)
SQL > alter system switch logfile;
Modified system.
CHECK THE NEWSPAPER OF SEQ # IN TWO DATABASES (PRIMARY / SECONDARY)
SQL > select thread #, max(sequence#) from v$ log group thread #;
THREAD # MAX(SEQUENCE#)
---------- --------------
1 166
2 130
3 36
4 41SQL > select thread #, max(sequence#) from v$ log group thread #;
THREAD # MAX(SEQUENCE#)
---------- --------------
1 166
2 130
3 36
4 41TAIL ON ALERT. NEWSPAPER (JUST FOR ERROR CHECKING)
dgmgrl sys/oracle@db
DGMGRL > TRANSITION to dbd;
Continue to pass, please wait...
New primary database 'dbd' opens...
The operation requires the judgment of the instance of the 'db1' on database 'db '.
Instance closing 'db1 '...
ORACLE instance stops.
The operation requires the start the instance of the 'db1' on database 'db '.
Start the instance of the 'db1 '...
ORACLE instance started.
Mounted database.
Successful passage, new principal is 'dbd. '
DGMGRL >DGMGRL > show configuration
Configuration - dgcfg
Protection mode: MaxPerformance
Databases:
DBD - primary
DB - Physical standby databaseFast-Start Failover: DISABLED
The configuration status:
SUCCESSVALIDATE THE ROLE OF EVE
SQL > select database_role from database v$.
DATABASE_ROLE
----------------
PRIMARYVALIDATE THE ROLE FOR TEACHING PRIMARY SCHOOL
SQL > select database_role from database v$.
DATABASE_ROLE
----------------
PHYSICAL STANDBYVALIDATE THE STATUS OF THE APPLICATION OF JOURNAL NEWS (PRIMARY PREREQUISITE) PENDING
SQL > SELECT client_process, process, thread #, sequence #, status from v$ managed_standby;
CLIENT_P PROCESS THREAD # SEQUENCE # STATUS
-------- --------- ---------- ---------- ------------
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 1 175 CLOSING
ARCH ARCH 2 136 CLOSING
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 0 0 CONNECTED
ARCH ARCH 0 0 CONNECTED
MRP0 N/A APPLYING_LOG 2 137CLIENT_P PROCESS THREAD # SEQUENCE # STATUS
-------- --------- ---------- ---------- ------------
ARCH RFS 0 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLE
RFS 0 UNKNOWN 0 IDLECLIENT_P PROCESS THREAD # SEQUENCE # STATUS
-------- --------- ---------- ---------- ------------
LGWR RFS 1 176 IDLE
RFS 0 UNKNOWN 0 IDLE
LGWR RFS 2 137 IDLE##THE END #.
Just to remind: to THE RESCUE of the ROLES, you just need to do the reverse procedure.
As I said above, there are a lot of steps, you must configure the DG and the BROKER, however, the DIGITAL switchover process is basically that I describe above.
It may be useful
Victor
-
Import data over the network link in oracle 11 g
We want to take the export of the NDO schema in database production and
import in the scheme of the NDO in UAT database on a network
link using data in Oracle 11 g pump. Kindly share the steps.Scenario:
Directly import the schema of TEST01 in the production database (oraodrmu) to test the oraodrmt database, on
a network to help pump link and data from database in Oracle 11 g.Note: When you perform an import via a database link, the import source is a database, not a dump file set, and the data is imported to the connected instance of database.
Because the link may identify a database remotely in a network, the database of terms link and the network link are used interchangeably.=================================================================
STEP 1 (IN PRODUCTION DATABASE - oraodrmu)
=================================================================[root@szoddb01] > su - oraodrmu
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing optionsSQL > grant resources to test01.
Grant succeeded.
SQL > grant imp_full_database to test01.
Grant succeeded.
SQL > select owner, object_type, status, count (*) in the dba_objects where owner = "TEST01" group by owner, object_type, status;
OWNER OBJECT_TYPE STATUS COUNT (*)
------------------------------ ------------------- ------- ----------
TEST01 PROCEDURE VALID 2
TEST01 TABLE 419 VALID
TEST01 SEQUENCE VALID 3
TEST01 FUNCTION VALID 8
TEST01 TRIGGER 3 VALID
TEST01 INDEX VALID 545
TEST01 LOB 18 VALID7 selected lines.
SQL >
SQL > define pages 999
SQL > format 'size Mo' 999 999 999 col
SQL > col 'objects' format 999 999 999
SQL > select obj.owner 'owner '.
obj_cnt 2, 'objects '.
3, decode (seg_size, NULL, 0, seg_size) 'size MB.
4 of (select master, the obj_cnt of count (*) group by owner dba_objects) obj
5, (select master, ceil (sum (bytes) / 1024/1024) seg_size)
6 Group dba_segments by owner) seg
7 where obj.owner = seg.owner (+)
Order of 8 by 3 desc, desc 2, 1
9.Size of the objects owner MB
------------------------------ ------------ ------------
NDO 8 097 284 011
9 601 1 912 SYS
998 1 164 TEST013 selected lines.
SQL > exit
=================================================================
STEP-2 (in TEST DATABASE - oraodrmt)
=================================================================[root@szoddb01] > su - oraodrmt
[oraodrmt@szoddb01] > sqlplus
SQL * more: Production release 11.2.0.2.0 on Mon 3 dec 18:40:16 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing optionsSQL > select name, open_mode from v$ database;
NAME OPEN_MODE
--------- --------------------
ODRMT READ WRITESQL > create tablespace test_test datafile ' / trn_u04/oradata/odrmt/test01.dbf' size 2048 m;
Created tablespace.
SQL > create user identified by test123, default tablespace test01 test_test;
Created by the user.
SQL > grant resources, create session to test01.
Grant succeeded.
SQL > grant permission to test01.
Grant succeeded.
SQL > grant imp_FULL_DATABASE to test01.
Grant succeeded.
Note: ODRMU is the name of hoste DNS. We can test the connection with: [oraodrmt@szoddb01] > sqlplus test01/test01@odrmu
SQL > create directory test_network_dump as ' / dbdump/test_exp ";
Created directory.
SQL > grant read, write on directory test_network_dump to test01.
Grant succeeded.
SQL > conn test01/test123
Connected.SQL > DATABASE LINK remote_test CONNECT TO test01 identified by test01 to create with the HELP of "ODRMU";
Database link created.
To test the link of database, we can try the sql below:
SQL > select count (*) in OA_APVARIABLENAME@remote_test;
COUNT (*)
----------
59SQL > exit
[oraodrmt@szoddb01] > impdp test01/test123 network_link = remote_test = test_network_dump remap_schema = test01:test01 logfile directory = impdp__networklink_grms.log;
[oraodrmt@szoddb01] >Import: Release 11.2.0.2.0 - Production on Mon 3 19:42:47 dec 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Departure "TEST01". "' SYS_IMPORT_SCHEMA_01 ': test01 / * network_link = remote_test = test_network_dump remap_schema = test01:test01 impdp_grms_networklink.log = logfile directory
Current estimation using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 318,5 MB
Processing object type SCHEMA_EXPORT/USER
ORA-31684: USER object Type: "TEST01" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment
Object type SCHEMA_EXPORT/TABLE/TABLE processing
. . imported "TEST01". "' SY_TASK_HISTORY ' 779914 lines
. . imported "TEST01". "' JCR_JNL_JOURNAL ' 603 lines
. . imported "TEST01". "" 1229 GX_GROUP_SHELL lines.
. . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..Work "TEST01". "" SYS_IMPORT_SCHEMA_01 "completed with error (s 1) at 19:45:19
[oraodrmt@szoddb01] > sqlplus
SQL * more: Production release 11.2.0.2.0 on Mon 3 dec 19:46:04 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing optionsSQL > select owner, object_type, status, count (*) in the dba_objects where owner = "TEST01" group by owner, object_type, status;
OWNER OBJECT_TYPE STATUS COUNT (*)
------------------------------ ------------------- ------- ----------
TEST01 PROCEDURE VALID 2
TEST01 TABLE 419 VALID
TEST01 SEQUENCE VALID 3
TEST01 FUNCTION VALID 8
TEST01 TRIGGER 3 VALID
TEST01 INDEX VALID 545
TEST01 LOB 18 VALID
TEST01 DATABASE LINK VALID 18 selected lines.
SQL >
SQL > define pages 999
SQL > format 'size Mo' 999 999 999 col
SQL > col 'objects' format 999 999 999
SQL > select obj.owner 'owner '.
obj_cnt 2, 'objects '.
3, decode (seg_size, NULL, 0, seg_size) 'size MB.
4 of (select master, the obj_cnt of count (*) group by owner dba_objects) obj
5, (select master, ceil (sum (bytes) / 1024/1024) seg_size)
6 Group dba_segments by owner) seg
7 where obj.owner = seg.owner (+)
Order of 8 by 3 desc, desc 2, 1
9.Size of the objects owner MB
------------------------------ ------------ ------------
NDO 8 065 247 529
9 554 6 507 SYS
999 1 164 TEST0113 selected lines.
=================================================================
STEP 3 TO REMOVE THE LINK OF DATABASE
=================================================================[oraodrmt@szoddb01] > sqlplus
SQL * more: Production release 11.2.0.2.0 on Mon 3 dec 19:16:01, 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing optionsSQL > drop database link remote_test;
Database link dropped.
-
Need help on DR Failover to production database
Database: Oracle Database 10 g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
Operating system: Solaris
Type of replication: Dataguard (with brokers)
Problem:
Due to the failure of feed on the production we spent our secondary primary security goal allowed us to point of blowback on current production (old reserve), now hopefully we will face the problem during the transition to production, if it please help and guide which will be the best practice in this case and because of the flashback on squnce Exchange not getting out of the Please help this problem and guide
MAX(SEQUENCE#)
--------------
9221
========#######================
Last login: Wednesday, 5 Sep 01:51:32 in the 10.245.13.6
$ su - oracle
Password:
Mesg: cannot change the mode
$ ps - ef | grep pmon
2978 1 oratst 0 Sep 08? 233:10 ora_pmon_amantst
Oracle 3039 1 0 Sep 08? 209:09 ora_pmon_airman
Oracle 17582 17574 0 05:41:15 pts/1 0:00 grep pmon
$ sqlplus
SQL * more: release 10.2.0.3.0 - Production on Sea 5 05:56:21 Sep 2012
Copyright (c) 1982, 2006, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
SQL > list of archive logs
Database log mode Archive Mode
Active AutoArchive
Archives/u01/oradata/airman/archive destination
Sequence of journal online oldest 9220
Log sequence to archive 0
Current log sequence 9222
SQL > exit
Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
$ sqlplus
SQL * more: release 10.2.0.3.0 - Production on Sea 5 05:57:08 Sep 2012
Copyright (c) 1982, 2006, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
SQL > show parameter dump
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
background_core_dump partial string
the string background_dump_dest/u01/app/oracle/admin/airman/b
Tipper
core_dump_dest string/u01/app/oracle/admin/airman/c
Tipper
max_dump_file_size string UNLIMITED
shadow_core_dump partial string
user_dump_dest string/u01/app/oracle/admin/airman/u
Tipper
SQL > exit
Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
$ cd/u01/app/oracle/admin/airman/bdump
alert of $ ls - lrt
Alert: no such file or directory
$ *
ksh: airman_arc0_11192.trc: cannot run
$ ls - lrt alert *.
-rw - r - 1 oracle oinstall 5323818 4 September 20:54 alert_airman.log
flashback $ mkdir
chmod $755 flashback
$ sqlplus
SQL * more: release 10.2.0.3.0 - Production Wed Sep 5 06:10:06 2012
Copyright (c) 1982, 2006, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
SQL > select max(sequence#) from v$ log_history;
MAX(SEQUENCE#)
--------------
9221
SQL > select NAME, DATABASE_ROLE, GUARD_STATUS, SWITCHOVER_STATUS, switch to THE #, OPEN_MODE, PROTECTION_MODE from v$ database;
NAME DATABASE_ROLE GUARD_S SWITCHOVER_STATUS PASSAGE TO THE # OPEN_MODE
--------- ---------------- ------- -------------------- ----------- ----------
PROTECTION_MODE
--------------------
AIRMAN PHYSICAL STANDBY NO SESSIONS ACTIVE 4176335025 MOUNTED
MAXIMUM PERFORMANCE
SQL > select NAME, DATABASE_ROLE, GUARD_STATUS from v$ database;
NAME DATABASE_ROLE GUARD_S
--------- ---------------- -------
AIRMAN PHYSICAL STANDBY NO
SQL > select SWITCHOVER_STATUS, passage to THE #, OPEN_MODE, PROTECTION_MODE from v$ database;
SWITCHOVER_STATUS PASSAGE TO THE # OPEN_MODE PROTECTION_MODE
-------------------- ----------- ---------- --------------------
SESSIONS ACTIVE 4176335025 MOUNTED A MAXIMUM PERFORMANCE
==================================================
Enter the user name: virtue sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
SQL > select name, open_mode from v$ database;
NAME OPEN_MODE
--------- ----------
AVIATOR MOUNTED
SQL > show parameter log_archive_dest_
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
Log_archive_dest_1 LOCATION string = / u01/oradata/Aviator/a
rchive VALID_FOR (ALL_LOGFILES =
ALL_ROLES) db_unique_name = air
man_sj
LOG_ARCHIVE_DEST_10 string
chain of LOG_ARCHIVE_DEST_2 SERVICE = airman_kj LGWR ASYNC V
ALID_FOR = (ONLINE_LOGFILE, PRIMA)
RY_ROLE) db_unique_name = Aviator
_kj
log_archive_dest_3 string
log_archive_dest_4 string
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
allow the chain of log_archive_dest_state_1
allow the chain of log_archive_dest_state_10
allow the chain of LOG_ARCHIVE_DEST_STATE_2
allow the chain of log_archive_dest_state_3
allow the chain of log_archive_dest_state_4
allow the chain of log_archive_dest_state_5
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
allow the chain of log_archive_dest_state_6
allow the chain of log_archive_dest_state_7
allow the chain of log_archive_dest_state_8
allow the chain of log_archive_dest_state_9
SQL >
SQL > alter system set log_archive_dest_2 = delay;
ALTER system set log_archive_dest_2 = reporter
*
ERROR on line 1:
ORA-02097: the parameter cannot be changed because specified value is not valid
ORA-16024: parameter LOG_ARCHIVE_DEST_2 cannot be parsed.
SQL > alter system set log_archive_dest_2 = reporter scope = mΘmoire;
ALTER system set log_archive_dest_2 = scope reporter = mΘmoire
*
ERROR on line 1:
ORA-02097: the parameter cannot be changed because specified value is not valid
ORA-16024: parameter LOG_ARCHIVE_DEST_2 cannot be parsed.
SQL > alter system set log_archive_dest_2 = reporter scope = both;
ALTER system set log_archive_dest_2 = reporter scope = both
*
ERROR on line 1:
ORA-32001: write requested SPFILE but no SPFILE specified at startup
SQL > show the spfile parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
chain of SPFile
$ sqlplus
SQL * more: release 10.2.0.3.0 - Production Wed Sep 5 06:26:40 2012
Copyright (c) 1982, 2006, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
SQL > select name, open_mode from v$ database;
NAME OPEN_MODE
--------- ----------
AVIATOR MOUNTED
SQL > create spfile from pfile;
Created file.
SQL > alter database recover managed standby database cancel;
Database altered.
SQL > show parameter dump
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
background_core_dump partial string
the string background_dump_dest/u01/app/oracle/admin/airman/b
Tipper
core_dump_dest string/u01/app/oracle/admin/airman/c
Tipper
max_dump_file_size string UNLIMITED
shadow_core_dump partial string
user_dump_dest string/u01/app/oracle/admin/airman/u
Tipper
SQL > shutdown immediate;
ORA-01109: database is not open
The database is dismounted.
ORACLE instance stops.
SQL > startup nomount
ORACLE instance started.
Total System Global Area 209715200 bytes
Bytes of size 2029008 fixed
150997552 variable size bytes
54525952 of database buffers bytes
Redo buffers 2162688 bytes
SQL > show the spfile parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
/U01/app/Oracle/product/10.2.0 string SPFile
/Db_1/DBS/spfileairman.ora
SQL > alter database base_de_donnees eve of Mount;
Database altered.
SQL > ALTER DATABASE RECOVER MANAGED STANDBY BASE DISCONNECT FROM the SESSION.
Database altered.
SQL > show parameter log_archive_dest_
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
Log_archive_dest_1 LOCATION string = / u01/oradata/Aviator/a
rchive VALID_FOR (ALL_LOGFILES =
ALL_ROLES) db_unique_name = air
man_sj
LOG_ARCHIVE_DEST_10 string
chain of LOG_ARCHIVE_DEST_2 SERVICE = airman_kj LGWR ASYNC V
ALID_FOR = (ONLINE_LOGFILE, PRIMA)
RY_ROLE) db_unique_name = Aviator
_kj
log_archive_dest_3 string
log_archive_dest_4 string
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
allow the chain of log_archive_dest_state_1
allow the chain of log_archive_dest_state_10
allow the chain of LOG_ARCHIVE_DEST_STATE_2
allow the chain of log_archive_dest_state_3
allow the chain of log_archive_dest_state_4
allow the chain of log_archive_dest_state_5
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
allow the chain of log_archive_dest_state_6
allow the chain of log_archive_dest_state_7
allow the chain of log_archive_dest_state_8
allow the chain of log_archive_dest_state_9
SQL > alter system set log_archive_dest_2 = reporter scope = both;
ALTER system set log_archive_dest_2 = reporter scope = both
*
ERROR on line 1:
ORA-32017: failure of updated SPFILE
ORA-16179: progressive changes to 'log_archive_dest_2' unauthorized with SPFILE
SQL > alter system set log_archive_dest_2 = reporter scope = mΘmoire;
ALTER system set log_archive_dest_2 = scope reporter = mΘmoire
*
ERROR on line 1:
ORA-02097: the parameter cannot be changed because specified value is not valid
ORA-16024: parameter LOG_ARCHIVE_DEST_2 cannot be parsed.
SQL > alter system set log_archive_dest_state_2 = reporter scope = both;
Modified system.
SQL > show parameter log_archive_dest_state_2
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
LOG_ARCHIVE_DEST_STATE_2 string DAVID
SQL > show parameter db_recovery_file_dest
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string
db_recovery_file_dest_size large integer 0
SQL > alter system set db_recovery_file_dest = ' / u01/oradata/flashback. "
ALTER system set db_recovery_file_dest = ' / u01/oradata/flashback.
*
ERROR on line 1:
ORA-02097: the parameter cannot be changed because specified value is not valid
ORA-19802: cannot use DB_RECOVERY_FILE_DEST, DB_RECOVERY_FILE_DEST_SIZE without
SQL > alter system set db_recovery_file_dest_size = 14G;
Modified system.
SQL > alter system set db_recovery_file_dest = ' / u01/oradata/flashback. "
Modified system.
SQL > show parameter db_recovery_file_dest
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string/u01/oradata/flashback
whole large db_recovery_file_dest_size 14G
SQL > show parameter db_flashback_retention_target
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_flashback_retention_target around 1440
SQL > alter system set db_flashback_retention_target = 2880;
Modified system.
SQL > create spfile from pfile;
Created file.
SQL > alter database recover managed standby database cancel;
Database altered.
SQL > alter flashback database;
Database altered.
SQL > create restore point guaranteed before_open_standby flashback database;
Restore point created.
SQL > select Yvert, storage_size, time, name from v$ restore_point;
RCS STORAGE_SIZE
---------- ------------
TIME
---------------------------------------------------------------------------
NAME
--------------------------------------------------------------------------------
1536320779 8192000
06.37.50.000000000 05-AUG-12 AM
BEFORE_OPEN_STANDBY
SQL > set linesize 200
SQL > col Yvert, storage_size, time, name format a25
SQL > select Yvert, storage_size, time, name from v$ restore_point;
SNA STORAGE_SIZE TIMES
---------- ------------ ---------------------------------------------------------------------------
NAME
--------------------------------------------------------------------------------------------------------------------------------
1536320779 8192000 05-AUG-12 AM 06.37.50.000000000
BEFORE_OPEN_STANDBY
SQL > alter database activate standby database;
Database altered.
SQL > select database_role from database v$.
DATABASE_ROLE
----------------
PRIMARY
SQL > shutdown immediate;
ORA-01109: database is not open
The database is dismounted.
ORACLE instance stops.
SQL > startup
ORACLE instance started.
Total System Global Area 209715200 bytes
Bytes of size 2029008 fixed
150997552 variable size bytes
54525952 of database buffers bytes
Redo buffers 2162688 bytes
Mounted database.
Open database.
SQL > select name, open_mode from v$ database;
NAME OPEN_MODE
--------- ----------
AIRMAN READING WRITING
SQL > select max(sequence#) from v$ log_history;
MAX(SEQUENCE#)
--------------
9221
Published by: NATALIE on September 7, 2012 09:31Salvation;
"" I suggest you close your question here as has answered your question move Home Forum ' high availability ' Dataguard which is dedicated Dataguard forum site.
Respect of
HELIOS -
Table not found after recovery completes tablespace
Hello all, Table not found even after tablespace restored and recovered. Please loot at it if you have a minute.
SQL > conn reddy/reddy
Connected.
SQL > select table_name from user_tables where nom_tablespace = 'REDDY ';
TABLE-NAME
------------------------------
RECORDS
EMP
SQL > select * from emp;
ENAME E_NUM ESAL E_ID
-------------------- ---------- ---------- ----------
Jim 1001 40000 25
Sam 27 30000 1002
Kim 1003 35000 30
Phil 1005 25000 37
Sam 1006 32000 40
James 1009 43000 45
6 selected lines.
SQL > exit
Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
[oracle@RHELSRV ~] $ rman
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Apr 4 21:05:37 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN > Connect target /.
connected to target database: ORCL (DBID = 1314955841)
RMAN > backup tablespace reddy;
From backup 4 July 12
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 115 devtype = DISK
channel ORA_DISK_1: from full datafile backupset
channel ORA_DISK_1: specifying datafile (s) in backupset
input datafile fno = name=/u01/app/oracle/oradata/orcl/reddy01.dbf 00008
channel ORA_DISK_1: starting total, 1 to 4 July 12
channel ORA_DISK_1: finished piece 1 to 4 July 12
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_04/o1_mf_nnndf_TAG20120704T210605_7z8rq6pb_.bkp tag = TAG20120704T210605 comment = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:07
Backup finished on 4 July 12
From control file and SPFILE Autobackup 4 July 12
total, handle = / u01/orabackup/c-1314955841-20120704-01 comment = NONE
Control finished and Autobackup SPFILE file to 4 July 12
RMAN > exit
Complete recovery manager.
[oracle@RHELSRV ~] $ expdp dumpfile = logfile = directory = dpump emp.log emp.dmp tables = emp
Export: Release 10.2.0.1.0 - Production on Wednesday, July 4, 2012 21:07:21
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Username: reddy
Password:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
Starting "REDDY". "" SYS_EXPORT_TABLE_01 ": reddy / * dumpfile = logfile = directory = dpump emp.log emp.dmp tables = emp
Current estimation using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Object type TABLE_EXPORT/TABLE/TABLE processing
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment
. . exported "REDDY". "" EMP "6,070 KB 6 ranks
Table main "REDDY". "" SYS_EXPORT_TABLE_01 "properly load/unloaded
******************************************************************************
Empty the files together for REDDY. SYS_EXPORT_TABLE_01 is:
/U01/orabackup/EMP.dmp
Work "REDDY". "" SYS_EXPORT_TABLE_01 "conducted at 21:08:07
[oracle@RHELSRV ~] $ sqlplus
SQL * more: Release 10.2.0.1.0 - Production on Wed Apr 4 08:21:21 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter the user name: reddy
Enter the password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
SQL > drop table emp;
Deleted table.
SQL > select table_name from user_tables where nom_tablespace = 'REDDY ';
TABLE-NAME
------------------------------
RECORDS
SQL > conn virtue sysdba
Connected.
SQL > alter tablespace reddy offline;
Tablespace altered.
SQL > exit
Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
[oracle@RHELSRV ~] $ rman
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Apr 4 21:09:39 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN > restore tablespace reddy;
From restoration to July 4, 12
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at 04/07/2012 21:09:56
RMAN-12010: automatic channel distribution initialization failed
RMAN-06171: not connected to the target database
RMAN > Connect target /.
connected to target database: ORCL (DBID = 1314955841)
RMAN > restore tablespace reddy;
From restoration to July 4, 12
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 109 devtype = DISK
channel ORA_DISK_1: from datafile backupset restoration
channel ORA_DISK_1: specifying datafile (s) to restore from backup set
restoring datafile 00008 to /u01/app/oracle/oradata/orcl/reddy01.dbf
channel ORA_DISK_1: backup /u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_04/o1_mf_nnndf_TAG20120704T210605_7z8rq6pb_.bkp piece reading
channel ORA_DISK_1: restored the backup part 1
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_04/o1_mf_nnndf_TAG20120704T210605_7z8rq6pb_.bkp tag = TAG20120704T210605
channel ORA_DISK_1: restore complete, duration: 00:00:01
Restoration finished in July 4, 12
RMAN > recover tablespace reddy;
To go back to July 4, 12
using channel ORA_DISK_1
starting media recovery
media recovery complete, duration: 00:00:01
Finished recover to 4 July 12
RMAN > exit
Complete recovery manager.
[oracle@RHELSRV ~] $ sqlplus "virtue sysdba".
SQL * more: Release 10.2.0.1.0 - Production on Wed Apr 4 21:10:42 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
SQL > alter tablespace reddy online.
Tablespace altered.
SQL > conn reddy/reddy
Connected.
SQL > select table_name from user_tables where nom_tablespace = 'REDDY ';
TABLE-NAME
------------------------------
RECORDS
Thanks in advance!you have made a complete recovery - that's why everything should be consistent. After RELEASE, the data dictionary has removed information about the table. Therefore, on the restoration and recovery, also, information about the table should not exist. Oracle made the right choice by making the tablespace to be consistent with the rest of the database, including the data dictionary.
Hemant K Collette
-
Hi all
I installed Oracle 10 g on Linux.
But I am not able to connect.
When I do the sqlplus query, I get the below error:
Enter the user name: virtue sysdba
Connect to an instance is idle.
SQL > select * from v database $;
Select * from database v$
*
ERROR on line 1:
ORA-01034: ORACLE not available
or
SQL > startup;
ORA-01078: failure in the treatment of system settings
LRM-00109: could not open the parameter file ' / u01/app/oracle/product/10.2.0/db_1/dbs/inittestdb.ora'
Please advice.
Thank you
Ashwani N.Details of the message of pl of the exact versions of "Linux" and "10g". Check that there are no error messages in the logs of installation?
The error message seems to be explicit - the instance could not be started due to a missing init.ora file. Have you checked that the file and the directory exist (for ' / u01/app/oracle/product/10.2.0/db_1/dbs/inittestdb.ora'), and that the permissions are appropriate?
HTH
Srini -
Hi all
My env oracle 11 g R2 Sp2 of Xp , I get my service name Tnsping error IE prod
error...
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:15:36
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name
C:\Documents and Settings\Administrateur > lsnrctl
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on August 2, 2010 20:19
: 46
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Welcome to LSNRCTL, enter 'help' for more information.
LSNRCTL > reload
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
The command completed successfully
LSNRCTL > tnsping prod
NL-00853: command not defined "tnsping. Try "help".
LSNRCTL > output
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:20:07
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name
C:\Documents and Settings\Administrateur > lsnrctl stop
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on August 2, 2010 20:21
: 40
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
The command completed successfully
C:\Documents and Settings\Administrateur > lsnrctl start prod
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on August 2, 2010 20:21
: 48
Copyright (c) 1991, 2010, Oracle. All rights reserved.
From tnslsnr: Please wait...
Cannot open the service < OracleOraDb11g_home2TNSListenerprod >, error 1060.
TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
System settings file is C:\ora1\product\11.2.0\db2\network\admin\listener.ora
Log messages written to c:\ora1\diag\tnslsnr\friends-c0d8866\prod\alert\log.xml
Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = friends-c0d8866)(PORT=15)
(21)) (21)) (CONNECT_DATA = (Server = Dedicated)(service_name=Prod)))
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = friends-c0d8866)(PORT=15)
(21)) (21)) (CONNECT_DATA = (Server = Dedicated)(service_name=Prod)))
STATUS of the LISTENER
------------------------
Alias prod
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Prod
ction
Start date August 2, 2010 20:21:51
Uptime 0 days 0 h 0 min 1 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File C:\ora1\product\11.2.0\db2\network\admin\listener.ora
C:\ora1\diag\tnslsnr\friends-c0d8866\prod\alert\log.XM log listener
l
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = friends-c0d8866)(PORT=1521)) (CONNECT
DATA = (SERVER = dedicated) (SERVICENAME = prod)))
The listener supports no services
The command completed successfully
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:22
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name
C:\Documents and Settings\Administrateur > netca
Oracle Net Services Configuration:
The name of the net service PROD has been removed.
By default the local naming complete configuration.
Created the network service name: PROD
Configuring Oracle Net Services successfully. The exit code is 0
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:24:39
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name
C:\Documents and Settings\Administrator > lsntctl
'lsntctl' is not recognized as an internal or external command
operable program or batch file.
C:\Documents and Settings\Administrateur > lsnrctl
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on August 2, 2010 20:26
: 58
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Welcome to LSNRCTL, enter 'help' for more information.
LSNRCTL > help
The following are available
An asterisk (*) indicates a modifier or an extended order:
start stop status
top-up version services
save_config trace change_password
Exit exit together *.
show *.
LSNRCTL > status
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
AMT-12541: TNS:no listener
AMT-12560: TNS:protocol adapter error
AMT-00511: no listener
32-bit Windows error: 2: no such file or directory
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = friends-c0d8866)(PORT=15)
21)))
STATUS of the LISTENER
------------------------
Alias prod
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Prod
ction
Start date August 2, 2010 20:21:51
Uptime 0 days 0 h 5 min 30 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File C:\ora1\product\11.2.0\db2\network\admin\listener.ora
C:\ora1\diag\tnslsnr\friends-c0d8866\prod\alert\log.XM log listener
l
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = friends-c0d8866)(PORT=1521)) (CONNECT
DATA = (SERVER = dedicated) (SERVICENAME = prod)))
Summary of services...
"Prod" service has 1 instance (s).
Instance "prod", State LOAN, has 1 operation for this service...
Service 'prodXDB' has 1 instance (s).
Instance "prod", State LOAN, has 1 operation for this service...
The command completed successfully
LSNRCTL > output
C:\Documents and Settings\Administrateur > tnsping
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:27:41
Copyright (c) 1997, 2006, Oracle. All rights reserved.
AMT-03502: insufficient Arguments. Use: tnsping < address > [< number >]
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:27:48
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name
C:\Documents and Settings\Administrateur > EPS
'env' is not recognized as an internal or external command
operable program or batch file.
C:\Documents and Settings\Administrateur > set TNS_ADMIN = C:\ora1\product\11.2.0\db
2\network\admin
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 20:28:51
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name
C:\Documents and Settings\Administrateur > lsnrctl
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on August 2, 2010 20:31
: 27
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Welcome to LSNRCTL, enter 'help' for more information.
LSNRCTL > reload
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
AMT-12541: TNS:no listener
AMT-12560: TNS:protocol adapter error
AMT-00511: no listener
32-bit Windows error: 2: no such file or directory
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = friends-c0d8866)(PORT=15)
21)))
The command completed successfully
LSNRCTL > trcroute
NL-00853: command not defined "trcroute. Try "help".
LSNRCTL > output
C:\Documents and Settings\Administrateur > sqlplus
SQL * more: version 11.2.0.1.0 Production on Lun 2 August 20:48:17 2010
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL > stop the demolition
ORACLE instance stops.
SQL > startup
ORACLE instance started.
Total System Global Area 318046208 bytes
Bytes of size 1374332 fixed
268437380 variable size bytes
Buffers data 41943040 bytes
Redo buffers 6291456 bytes
Mounted database.
Open database.
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - Pr
production
With partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
C:\Documents and Settings\Administrateur > tnsping prod
AMT Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production 02-AUG-2
010 22:11:11
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Use settings files:
AMT-03505: failed to resolve the name...
My lsnr conf is......................................
listener.ora # Network Configuration file: C:\ora1\product\11.2.0\db2\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\ora1\product\11.2.0\db2)
(= Extproc PROGRAM)
(ENVS = "EXTPROC_DLLS=ONLY:C:\ora1\product\11.2.0\db2\bin\oraclr11.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = friends-c0d8866)(PORT = 1521))
)
)
Prod =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = friends-c0d8866)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = prod)
)
)
.............................................................
TNSNAME.ora is...
tnsnames.ora # Network Configuration file: C:\ora1\product\11.2.0\db2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = friends-c0d8866)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = prod)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
................................................................
sqlnet.ora................................
sqlnet.ora s # Network Configuration file: C:\ora1\product\11.2.0\db2\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've done a few tracks... but I can't solve the error...
Please let me know what parameters to change...
Kind regards
KKA bad configuration OS/networking & has NOTHING to do with Oracle
Any type of operating system virtualization is involved?
-
RMAN-04005: target database error: ORA-01031: insufficient privileges
Try to duplicate db
I checked the orapwd file looks ok.
Oracle: tulpcorpadb03$ rman TARGET sys/***@wcmp AUXILIARY.
Release of Recovery Manager: 9.2.0.8.0 - 64 bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-00554: initialization of the package manager internal collection failed
RMAN-04005: target database error:
ORA-01031: insufficient privileges
I findout, this is prod db and not allowed to bounce to change, any other solution do rman duplicate work without changing it?
SQL > show parameter password
VALUE OF TYPE NAME
-----------
Remote_login_passwordfile string NONE
SQL > connect virtue sysdba;
Connected.
SQL > select * from v$ pwfile_users;
no selected lineThe auxiliary node must always have access to the backupset.
Maybe you are looking for
-
Recently, I downloaded an app called Skype Wifi. After having proved to be useless, I deleted it on my iPad. However, now my Internet connection is completely ruined. First of all, whenever the list of networks pop - up, one of the results is always
-
Pavilion 17-g101dx: remove Cyberlink programs
I just bought a new HP Pavilion and it has four associated programsin Cyberlink. I use Irfanview and Windows Media Player formy display and ripping operations. I don't watch DVDs or doall complicated image change. It would be safe to get rid of these
-
increase the resolution of the screen
On my computer screen resolution is 1024 X 600 is any kind of program I can download to increase the resolution I have dell mini 910 model
-
Computer shuts down unexpectedly and does not start
I have a gateway NV52 running windows vista Home premium 64-bit.It is about four years old. Lately, I'll work on something, and the computer turns off without any warning. If not off, but just completely turn off as if it was a desktop computer and s
-
No wireless on Windows 7 64-bit
I have a ZONET ZEW 2500 P USB wireless adapter that I am using on my new Windows 7 64 bit desktop. I installed the latest drivers from the RaLink for this card website (this adapter uses the Ralink chipset). So far, I got to a point where I can see m