Restore and recover Oracle 10g database from tape.
I have a very basic question for restore and recover Oracle 10g database. Our envirnment settings are:
Oracle 10g on Unix, daily database and archivelog backup to Vista NetBackup server. Retention policy is 2. Old backup files are copied from NetBackup server to the tape for record keeping.
I want to restore a database to a point in time. Because our retention policy is setup to 2. The backup files I need have been copied to the tape. So I should ask SYSTEM ADMIN to copy the backup files back to NetBackup server disk or I can ask him to copy backup files to the Unix server that host my Oracle 10g database. Then I can use Rman to do restore and recover. Is this doable? I know normal procedure is to copy backup files I need back to NetBackup server disk, not directly back to database server. Please put your comments here as early as better. I do appreciate your kind help.
853153 wrote:
I have a very basic question for restore and recover Oracle 10g database. Our envirnment settings are:
Oracle 10g on Unix, daily database and archivelog backup to Vista NetBackup server. Retention policy is 2. Old backup files are copied from NetBackup server to the tape for record keeping.
I want to restore a database to a point in time. Because our retention policy is setup to 2. The backup files I need have been copied to the tape. So I should ask SYSTEM ADMIN to copy the backup files back to NetBackup server disk or I can ask him to copy backup files to the Unix server that host my Oracle 10g database. Then I can use Rman to do restore and recover. Is this doable? I know normal procedure is to copy backup files I need back to NetBackup server disk, not directly back to database server. Please put your comments here as early as better. I do appreciate your kind help.For sure it is double work, To copy backup files on UNIX host.
Are you using catalog or nocatalog?
If the backup information is out of retention, Catalog them again also in netbackup.
So that you can able to restore database directly without copying those files to host.
Similar Messages
-
Steps to export and import oracle 10g databse from AIX to AIX and LINUX
Hi,
I need the steps to export the oracle 10g database from AIX server to AIX server and LINUX server.
Please give me all the steps as this is my first exort an import activity.
thanks,For 10g there exist two ways to do so.
1) Regular exp/imp.
2) Data pump expdp/impdp.
As this is your first export and import activity, relevant concept understanding is mandatory for you.
Documentation Link
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/toc.htm
Read the chapters 1,2,3 (Data pump expdp/impdp) and 19 (regular exp/imp). Good luck. -
I had migrated Oracle 10g database from Windows to Oracle 11g Linux
I had migrated Oracle 10g database from Windows to Oracle 11g Linux. The database is performing very slow.
Please guide me where I have to begin (starting point) looking into it.
Some document stated gather system statistics. How to check system statistics is up to date
What are the crucial initialization parameter ?Hi,
Let me just point you out to the documentation, which may concern you:
I had migrated Oracle 10g database from Windows to Oracle 11g Linux. The database is performing very slow.
Managing Optimizer Statistics
How to check system statistics is up to date
Managing Optimizer Statistics
What are the crucial initialization parameter ?
Configuring a Database for Performance
Thanks &
Best Regards, -
Export and import Oracle 10G database
Hello all
Can anyone tell me once for all how can i backup oracle 10G database and restore it in other computer (export and import)
thanks alot
RonDo you can access to metalink?
If not, I copy an paste this doc's....
Doc ID: Note:10767.1
Subject: How to perform FULL System Export/Imports
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 18-APR-1994
Last Revision Date: 30-AUG-2002
Purpose
This article highlights some important points to consider when performing
a Full System Export and Import.
Scope and Application
It is intended to assist users performing FULL System Exports and Imports.
A Full System Export and Import is a useful way to replicate or clean up
a database. Please note the following guidelines when performing a Full
System Export and Import:
1. When performing the import, ensure you are pointing at the correct
instance. Always check values for the SID and two task driver before
proceeding.
*Note: On Unix systems, just entering a sub-shell, such as using
C-shell, can change the database that the import would work
against.
2. When possible, it is advisable to take a physical copy of the
exported database and the database you intend to import into before
starting the import. This ensures any mistakes are reversible.
3. NEVER run a FULL SYSTEM IMPORT on a machine that has more than one
database UNLESS you are 100% sure all tablespaces have been
pre-created. A full import will create any undefined tablespaces
using the same datafile names as the exported database. There are
situations where this is very dangerous:
-> If the datafiles belong to ANY other database, they will be
CORRUPTED. This is especially true if the exported database is
on the same machine, because its datafiles will be re-used by
the database you are importing into.
-> If the datafiles have names that clash with existing operating
system files.
4. When exporting, it is advisable to also produce a report showing
information you may need before / after the import:
-> List the tablespaces and datafiles
-> List the rollback segments
-> List a count, by user, of each object type such as tables,
indexes, etc.
This enables you to ensure that tablespaces have been pre-created
and to check the success of the import after it is complete.
5. If you are creating a completely new database from an export, remember
to create an extra rollback segment in SYSTEM, and make this available
in the init.ora file before proceeding with the import.
6. There are some versions of export that do not retain sequence numbers
correctly. It is advisable to select next_value for each sequence
after the export so that these can be checked after import.
Following these guidelines will help you to avoid major problems.
Doc ID: Note:174226.1
Subject: How To Copy an Oracle Database To Another Machine
Type: HOWTO
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 12-OCT-2001
Last Revision Date: 01-OCT-2003
goal: How to copy an Oracle database to another machine
fact: Oracle Server - Enterprise Edition
fix:
Pre-requisites: The copy is between 2 machines, both have to be on the same OS
and have to have exactly the same database version installed.
1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
2. Copy init.ora and control files to create instance and be able to go in
mount mode. Check the init.ora for the locations where the controlfiles have
to be, if those locations are not valid on the machine put the control files on
different places and adjust the init.ora accordingly.
3.a. Copy the datafiles (all of them).
b. Copy the redo-logfiles (all of them).
4.a. (Unix only) Set the environment variables:
ORACLE_SID - set to the database name you wish to create
ORACLE_HOME - set to full pathname of the Oracle system home directory
PATH - needs to include $ORACLE_HOME/bin
b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
Use oradim to create the service for the instance. For more information
on oradim please refer to (the part that refers to creating a new instance):
Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database
5. Use servermanager (check the name to use for your version of oracle) or
sqlplus (version 9i and above) to startup the database in mount mode.
Do
CONNECT INTERNAL/<PASSWORD>
then
STARTUP MOUNT
Then do a rename of the copied datafiles if they are not in the same path as on
the other machine. For all the files that are in the result of the query:
SELECT NAME FROM V$DATAFILE;
do
ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
newfullpath>\<filename>';
6. Query the datadictionary for the old location of the redolog files using:
SELECT MEMBER FROM V$LOGFILE;
If the new place is not the same as the old do:
ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
lt;newfullpath>\<redologfilename>';
7. Now open the database:
ALTER DATBASE OPEN;
****************************************************************** -
Export oracle 10g database from one server to another.
I need to export some databases from production to testing server.
my question is on the user accounts.
if i do the full database will the users be exported too. or i need to recreate the users?
ThanksThis i clearly documented in this table per export and import modes (traditional tools).
Message was edited by:
orafad -
Content Server 7.5.2 upgrade to use Oracle 10g database from MS SQL
Customer is currently on Content Sever 7.5.2 (Unicode) running with a Microsoft SQL Database. They want to
change to an Oracle database. During a new installation we would specify
Content Server with the Unicode Option and select the oracle database option.
We are now post installation (18 months) and the want to switch over to use an
Oracle database.
Can someone please provide instructions for doing this from MS SQL to
Oracle 10gR2 (patched up to 10.2.0.4) with the Unicode option (nvarchar2
(Unicode) vs varchar2 (non-Unicode)).
I have submitted an SR (7517840.994) for this and they indicated I need to post a message.
Thank you
Steve BraultHi Steve,
I am just summarizing the requirement you are having . Correct me if I am wrong
You have a CS 7.5.2 running on MS-SQL. You want to migrate to CS 10gR3 running on a Oracle DB ? Or is it that you want to migrate only to a new database which is oracle DB?
For the first case what you need to do is to export all your contents through the archiver for CS 752 and all your configurations and metadata through Config Migration Utility. Then install a new CS instance running on oracle Db and import the Config Migration Bundle and then all the contents through the archiver.
For the second case you will have to take a backup of the data on the DB and also the DDL's of the Tables that are created apart from the normal content installation. Then you will have to run these DDL's on the Oracle DB (after changing the syntax) and make sure that on both DB instances all the table structures are identical.
Then you will have to load the data exported from MS-sql to Oracle DB. The export ca be done to a excel so that the same can be loaded on the oracle DB.
Before this you will have make the changes in the config.cfg for the CS and that is as follows :
#Database Variables
JdbcDriver=oracle.jdbc.OracleDriver
JdbcConnectionString=jdbc:oracle:thin:@ecmtest.idc.oracle.com:1521:orcl
JdbcUser=testsr2
JdbcPassword=NsFKKQ0iRkKzvq+iDoXSDDqY2y1EgQhmRr7J3mDyvQQ=
JdbcPasswordEncoding=Intradoc
DatabasePreserveCase=1
Your config.cfg should have entries like this for Oracle DB. You will have to change the JdbcDriver,JdbcConnectionString,JdbcUser,JdbcPassword,JdbcPasswordEncoding
JdbcPasswordEncoding need to be changed to ClearText first so that you can put the password in normal language.
Hope this helps
Thanks
Srinath -
Step to export and import oracle 10g on AIX,LINUX
Hi ,
Plase any one can give nme the steps to be followed to export and import oracle 10g database from AIX to AIX and LINUX also.
Waiting for your response.
Thanks..You dont have to follow any special steps, Export and Import are same on all OS's.
-
Oracle 10g database as Resource manager and heuristic transaction decision
Hi,
I have read in documents about distributed tarnsaction that resource manager like oracle databasecthat are involved in distributed transaction can take heuristic decision(unilateral decision) and can either rollback or commit the transaction associated with itself without having confirmation from the transaction manager.
I want to know how a resource manager take this unilateral decision and can we set this as parameter either in resource manager or in application server.
Thanks in advanceHi,
Following are some links to documents.
Handling Heuristic Completions
http://edocs.bea.com/wls/docs81/ConsoleHelp/jta.html
A heuristic completion (or heuristic decision) occurs when a resource makes a unilateral decision during the completion stage of a distributed transaction to commit or rollback updates. This can leave distributed data in an indeterminate state. Network failures or resource timeouts are possible causes for heuristic completion. In the event of an heuristic completion, one of the following heuristic outcome exceptions may be thrown:
HeuristicRollback—one resource participating in a transaction decided to autonomously rollback its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to commit the transaction, the resource's heuristic rollback decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were committed.
HeuristicCommit—one resource participating in a transaction decided to autonomously commit its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to rollback the transaction, the resource's heuristic commit decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were rolled back.
HeuristicMixed—the Transaction Manager is aware that a transaction resulted in a mixed outcome, where some participating resources committed and some rolled back. The underlying cause was most likely heuristic rollback or heuristic commit decisions made by one or more of the participating resources.
2. Understanding EJB Transaction
http://www2.sys-con.com/itsg/virtualcd/Java/archives/0504/tyagi/index.html
Unilateral Decisions
The transaction manager allows certain heuristic or speculative decisions to be made based on the state of all participating resources in a transaction and the underlying two-phase commit protocol. A heuristic decision occurs when one of the resources in the transaction unilaterally decides to commit or roll back the transaction without permission from the transaction manager
3. Oracle® Containers for J2EE
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28958.pdf
Heuristics
To achieve consensus, two-phase commit is a blocking protocol. This means that, if a coordinator fails before delivering the final phase messages, the participants must remain blocked, holding onto resources. Modern transaction systems add heuristics to two-phase commit, which allows such participants to make unilateral decisions about whether they will commit or rollback. If a participant makes a choice that turns out to be different from the one taken by other participants, then non-atomic behavior occurs.
I got this problem while trying to do a distributed J2EE tarnsaction with two XA (one MQ and other Oracle 10g database XA) and one non-xa (oracle 10g database). According to above docs a resource manager can decide tarnsaction final state unilaterally and that can result in unatomic transaction.
Do oracle also make such decision and if yes then on what ground it takes decision? Can we change this according to our requirement either always rollback/commit anywhere as parameter setting?
Thanks -
Oracle 10g update from 10.2.0.1 to 10.2.0.4
Hi all,
I like to update oracle 10g database from 10.2.0.1 to 10.2.0.4 by applying patch sets, would one please suggest me the best way.
I am planning to do in the way explained below
method:
# Install new Oracle Home
# Apply the patch to the new Home
# Shut down the database
# Change Oracle Home to the new location
# Start the database
Can you one suggest me how to do "Change Oracle Home of database to the new location" and back to older oracle_home incase if there are any issues, how to do and what changes requried to make database is run without any probs..
Thanks in advance..If you do it the best way is to read and follow the docs ... not ask strangers if they agree with a small number of bullet points.
But I disagree with your entire direction. 10gR2 goes into desupport mode at the end of this month. Why move to something that will be desupported before you get there? Why not 11.1.0.7 or 11.2.0.1?
If you must stay with 10g for awhile at least go to 10.2.0.5. -
Download 10g database from UK-Server
Hi
I am unable to download the Oracle 10g database from the UK-Server. Each time I click the download link the page just times out.
Your help is very much appreciated.
Ernest"Best" implies that you have criteria by which to make the decision. Can you help us understand what those criteria are for you?
If "best" means "easiest", the answer would be to use the DataPump versions of the export and import utilities (export on the Windows machine, copy the dump file, and import). Relatively easy and straightforward. But it has a relatively long downtime requirement-- the application(s) can't be changing data from the time you start the export to the time the import finishes.
There are many ways to reduce the downtime requirements, but they generally involve increasing the complexity of the migration. If it costs you a million dollars an hour to be down, reducing the downtime is well worth it. If you have an entire weekend of downtime and a small database, the added complexity wouldn't probably be beneficial.
Justin -
Auditing in oracle 10g database and oracle 10g application server
Dear friends,
We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database.
Can you please tell me how can i do it.
Thanks & regards,Its the database connection you want to track. The session audit will show where it came from.
Auditing is turned using this command:
alter system set audit_trail = DB scope=spfile;
Note: The use of spfile will require a DB bounce before audit starts
To audit Sessions:
audit create session;
Query by Audit Type:
SELECT A.USERNAME,
OS_USERNAME,
A.TIMESTAMP,
A.RETURNCODE,
TERMINAL,
USERHOST
FROM DBA_AUDIT_SESSION A
WHERE USERHOST = <replace with iAS servername> ;
By User
SELECT USERNAME,OBJ_NAME,ACTION_NAME , TIMESTAMP
FROM DBA_AUDIT_TRAIL WHERE USERNAME = 'SCOTT';
Check for users sharing database accounts
select count(distinct(terminal)),username
from dba_audit_session
having count(distinct(terminal))>1
group by username;
Attempts to access the database at unusual hours
SELECT username, terminal, action_name, returncode,
TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS'),
TO_CHAR (logoff_time, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') <
TO_DATE ('08:00:00', 'HH24:MI:SS')
OR TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') >
TO_DATE ('19:30:00', 'HH24:MI:SS');
Attempts to access the database with non-existent users
SELECT username, terminal, TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE returncode <> 0
AND NOT EXISTS (SELECT 'x'
FROM dba_users
WHERE dba_users.username = dba_audit_session.username);
Other audits you might consider:
audit grant any object privilege;
audit alter user;
audit create user;
audit drop user;
audit drop tablespace;
audit grant any role;
audit grant any privilege;
audit alter system;
audit alter session;
audit delete on AUD$ by access;
audit insert on AUD$ by access;
audit update on AUD$ by access;
audit delete table;
audit create tablespace;
audit alter database;
audit create role;
audit create table;
audit alter any procedure;
audit create view;
audit drop any procedure;
audit drop profile;
audit alter profile;
audit alter any table;
audit create public database link;
Best Regards
mseberg -
Replication of data from LDAP to Oracle 10g Database
Hi All,
in our application we are using Oracle Identity manager, and Oracle 10g database.
we are storing the user,profile and privilages in LDAP and due to some reason we have to create user table in the 10g database.
this user table values and LDAP user table values must be same.
here the source is LDAP and destination is Oracle.
so is there any way we can synchoronize or replicate the data from LDAP to 10g database?
since oracle identity manager is integrated with LDAP,
i feeel this must be possible.
but really dont know how?
kindly suggest me.
and if any examples available please let me know, i will be very greatful to you.
Thanks in advanceCheck out thread How synchronize OID user to a table?
The title of the thread is: How synchronize OID user to a table? -
Oracle 10G Database Control and Scheduling OWB Process Flow
Does anyone know how to go about scheduling an OWB Process Flow from
Oracle 10G Data Base Control. I knew how to do this with Oracle Enterprise Manager 9.2 but we recently upgraded to Oracle Db 10G and the interface has changed significantly.
Now the interface seems to require a PL/SQL stored procedure to be executed.
Is there a template procedure that is installed with 10G Data Base Control as there was for 9.2 i.e. oem_exec_template.sql?
Thanks! Deadline approaching fast...
MarionI've used the oem_exec_template.sql successfully with OWB 10.1 and Oracle 10G Database Control, with a little trial and error at first.
I'm assuming that your job execution environment is set up correctly, ie. that you can properly execute jobs via the host agent.
1. Log on to Database Control as SYSTEM, select Jobs from the links at the bottom of the page
2. In the Results section, Create Job, select "SQL Script" and press Go
3. In the General section, enter Job Name, and as SQL Script enter e.g.:
@/u01/app/oracle/owb_oracle_home/owb/rtp/sql/oem_exec_template.sql owb_runtime WF_LOC PROCESS MY_PROCESS , ,
4. In the Databases section, add your target database
5. In the Credentials section, I select "Override Preferred Credentials" and use the agent account (oracle on my Linux system) and db user owb_access (OWB Runtime Access user)
6. Review Schedule tab and submit
Comments on step 3:
- the oem_exec_template.sql script must be installed according to the path specified in step 3, on the database host where the OWB Runtime Repository is located
- owb_runtime is the owner of my OWB Runtime Repository
- WF_LOC is the name of my Workflow Location as seen in OWB Deployment Manager
- MY_PROCESS is the name of a deployed Workflow Process
- the commas indicate that I don't supply any system or custom parameters.
- step 3 is actually a shell command line that is interpreted by eg. /bin/sh on Unix or cmd on Windows, and must obey proper quoting rules. On windows, I had to specify the empty commas as "\," (including dblquotes)
Regards, Hans Henrik -
How to store photo images and thumbimpressions in oracle 10g database
Hi all
I have an web application running in Oracle 10g rel 1 database server in RHEL3. It has application server with forms and j2ee component as middle tier. I need to store centrally photo images and thumb impressions and use it in our application without any overhead on retrieval and performance of web application. what will be optimized method of storage of photo and thumb impressions. Awaiting your valuable suggestions.
Regards
Vijay KumarHi Vijay,
How to store photo images and thumbimpressions in oracle 10g database I have working code here for storing photos in Oracle tables that you may find useful:
http://www.dba-oracle.com/t_storing_insert_photo_pictures_tables.htm
Hope this helps . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm -
What is the function of _xdb and _xpt services in oracle 10g database.
what is the function of xdb and xpt services in oracle 10g database.?
Hi,
If you are troubleshooting check the below link too:
Issues installing. Listener not working
Best regards,
Rafi.
http://rafioracledba.blogspot.com/
Maybe you are looking for
-
New-MailExportRequest immediately running a second time
Dear PS / EMS experts, Just quickly - background info. I recently moved a small accounting firm (18 staff) from SBS 2003 to SBS 2011. Having purchased SBS 2011 Standard over a year ago knowing end-of-support for Exchange 2003 SP3 was 8th April 2014.
-
New iTunes versions no longer display the artist named "+/-"
Ok, so I know the new iTunes versions have put non-alphabetic artists at the end of the list, which is insanely re tar ded. But that's not my problem right now. With the new sorting algorithm, *one of my artists has actually disappeared!!!* The band
-
Chat App: how to store the user IP in database when they login.
hello, i am working on chat application. first i made a login GUI form. after login when we run the Chat program, it ask the ip address of the server to whom it want to connect. and if u enter the ip address, it will connect to the server and chat wi
-
Is anyone getting this message when trying to access Yahoo Email? "Cannot Get Mail, The connection to the server failed?"
-
Update any application on my iphone 4s
When I try to update any application on my iphone 4s, It wants "enter: itunes store for apple id [email protected] , write apple ıd password" then I write it but it couldn't update. But my apple id password works for purchasing any applications or music