StandBy database creation in oracle 10g

Respected Sir's
I have to create stand by database in oracle 10g i am working on (Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod) .Plz any body provide steps required for creating stand by database in oracle10g.Both the database db1 and db2 are running on archivelog.I am confuse how to set archivelog parameter that goes to db2(standby database) from db(primary database).Any one provide me steps to properly configuring the stand by database.
Thanks

Respected Sir
These are the detailed steps that i performed on standby and primary database.
On both the systems i install the oracle in E drive and the database i create in G drive and archive destination also in G drive.
Like G:\prod1\(all the datafiles,logfiles and control file).
G:\arch\(all the archive files).
ON PRIMARY DATABASE(IP:192.168.2.14):
1.First i create a database with DBCA and the database SID is prod1.
2.Put the database in archive mode and also enable the force logging.
3.Shutdown the Primary database and modify the following parameters in pfile.
log_archive_dest_1='LOCATION=G:\ARCH'
log_archive_dest_2 = "service=STDBY mandatory reopen=60"
log_archive_dest_state_1 = enable
log_archive_dest_state_2 = enable
log_archive_min_succeed_dest = 2
4.Mount the primary database and create the standby controle file and create the spfile from the modified pfile.
5.Shutdown the primary database and take the backup of all the datafile,logfile,standby controlfile ,passwordfile,pfile in a folder.
6.Startup the primary database.
Tnsname.ora Configuration.
Create the connection string using the Net Manager with name STDBY and in host name i provide the IP address of the standby database.
ON STANDBY DATABASE(IP 192.168.2.9):
Listener.ora Configuration.
Create a listener using the Net configuration Assistance.
1.I copy the datafile,logfile and standby controle file in g:\prod1
2.Copy the E:\oracle\product\10.2.0\admin\prod1 folder from primary database and past it on the same location on the standby database.
3.On standby pfile i change only the standby_archive_dest parameter to g:\arch.
4.Create the service with oradim -SID -NEW prod1 -STARTMODE manuall
5.Start the standby database in nomount mode.
6.Create the spfile from pfile and shutdown the database.
7.Startup the database in nomount mode using spfile.
8.ALTER DATABASE MOUNT STANDBY DATABASE;
These are the occurs when i use tnsping stdby on primary database.
C:\Documents and Settings\Administrator>TNSPING STDBY
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-FEB-2009 12:03:55
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.9
NECT_DATA = (SERVICE_NAME = prod1)))
OK (20 msec)
sqlnet.ora file on stand by database.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, LDAP)
BEQUEATH_DETACH=yes
AUTOMATIC_IPC = ON
NAMES.DEFAULT_DOMAIN = IDEVELOPMENT.INFO
SQLNET.EXPIRE_TIME=2
This occurs when i use tnsping prod1 on standby database.
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-FEB-2
009 12:01:40
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
Please help me bec i have to create the stand database as soon as possible.Thanks Sir

Similar Messages

  • Database creation failed Oracle 10g x64

    Hello,
    Trying to install Oracle 10.2.0.1.0 (x64) on Windows Server 2003 SP2 (x64).
    Towards end of installation, it fails at Database creation stage, stopping at 2%.
    Anyone can give any clue on why it happens ???
    Appreciate your help..

    Thank you for your inputs..
    I have tried to run DBCA , but again it fails at 2% (when database files being copied)
    I have also installed 10g Release 2 (10.2.0.4) Patch Set 3 for MS Windows x64
    also downloaded and installed latest Java
    Still when trying to create databse, it fails at the stage of copying database files.
    Thanks to share if anyone have any clue..

  • Standby database creating error oracle 10g

    Hi
    i created standby database,but i cannot access primary database data. the standby database opened read only.
    but i cannot access data from primary.so i check query in standby database,
    SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    no rows selected.
    what i mistake
    Regards
    S.Azar

    It you are not seeing any errors in the primary alert log, then I think that you have defined log_archive_dest_2 to use LOCATION instead of SERVICE. Archive logs have to be transmitted through Oracle Net in order to be automatically registered by the standby database.
    Hope this helps.
    Regards,
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com
    [Backup and Recovery of OCR|http://oracleracexpert.blogspot.com/2009/08/backup-and-recovery-of-ocr-oracle.html]

  • Physical Standby Database Creation with RMAN

    Hi,
    I'm in 10g on Linux. I want to create a standby database on another Linux server. I did not find a clear procedure to create it in Oracle® Database Backup and Recovery Advanced User's Guide 10g Release 2 (10.2) Part Number B14191-02
    and niether in Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-04
    In the last one chapter 3 sends you to F appendix and F appendix says do nothing before having than all in chapter 3 :
    In F.1.1 page F-2 it is said :
    See Chapter 3 for a complete discussion of physical standby database preparation,including initialization parameter settings. You must perform all necessary preparation tasks described in these chapters before RMAN can successfully create the standby database files and mount the standby database.
    Any way I'm looking for a procedure or clear article to create it.
    Many thanks before.

    Physical Standby Database Creation with RMAN
    Use the DUPLICATE command.
    Check out this metalink doc: Note:374069.1 and Note:118409.1
    Message was edited by:
    STW
    Message was edited by:
    STW

  • Can we rename the database name in oracle 10g

    Hi,
    Can we rename the database name in oracle 10g.
    Please help

    Yes as already said, using DBNEWID Utility can renamed the database name.
    You can also take a look at the Oracle Metalink Note:429674.1 (Which was written by me) - Subject: How We Used the Oracle DBNEWID Utility to Change the Database Name
    Regards,
    Sabdar Syed.

  • Scripts To Check Database Growth in Oracle 10g

    Hi All,
    I need your help developing a script to find out the database growth in Oracle 10G on daily, weekly and monthly basis.
    In our production database tablespace growth is huge and we are adding data files frequently. Management is asking about the database growth report and I need to present it. Is there any such script which will suffice the purpose.
    My database version is 10.2.0.5.
    Please help.
    Regards,
    Arijit

    1000103 wrote:
    Hi All,
    I need your help developing a script to find out the database growth in Oracle 10G on daily, weekly and monthly basis.
    In our production database tablespace growth is huge and we are adding data files frequently. Management is asking about the database growth report and I need to present it. Is there any such script which will suffice the purpose.
    only the report that you create
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • What is limit of database size in oracle 10g standard edition/edition one

    Hai All,
    What is the limit of database size in oracle 10g standard edition and standard edition one.. I see the white paper of oracle says that the limitation is 500 GB. This limitation is correct.? if correct then what happened after the limit..?
    Please help?
    Shiju

    What white paper would that be? I can't see any limit in the Oracle Database 10g Editions comparisons.
    C.

  • How to Connect to Oracle 9i database server via Oracle 10g XE

    I have installed Oracle 10g eXpress Edition and uninstalled Oracle 9i client database. I used Oracle 9i client to connect to another Database server on a local LAN. Is it possible to create a database link to the old Oracle 9i database server via Oracle 10g XE? If yes, do I need to add ODBC drivers?
    I want to achieve the following:
    1) Create a connection to the Oracle 9i database server using Ora101040 odbc drivers.
    2) Use a similar 9i tool (Enterprise Management Console) within Oracle 10g XE to access Oracle 9i Database tables on a LAN network.
    3) Create data access to Oracle 10g XE via some ODBC connection from a C++ runtime application.
    Hope to receive help from Oracle professionals.
    Thanks.

    I have installed Oracle 10g eXpress Edition and
    uninstalled Oracle 9i client database. I used OraclePlease clarify - you uninstalled the 9i database or the 9i client.
    9i client to connect to another Database server on a
    local LAN. Is it possible to create a database link
    to the old Oracle 9i database server via Oracle 10g
    XE? If yes, do I need to add ODBC drivers?
    Database links between Oracle databases do not require ODBC. They do require Oracle Networking (included with both Oracle9i Database and Oracle Database 10g XE) to be configured correctly.
    It is also possible to connect ot the 9i database using the 10g Instant Client (separate download)
    I want to achieve the following:
    1) Create a connection to the Oracle 9i database
    server using Ora101040 odbc drivers.Please clarify - what client do you wish to run that needs ODBC?
    2) Use a similar 9i tool (Enterprise Management
    Console) within Oracle 10g XE to access Oracle 9i
    Database tables on a LAN network.XE does not have an equivalent to Oracle Enterprise Manager. XE does come with HTMLdb preinstalled and configured, and HTMLdb provides a subset of the administration capabilities of Enterprise Manager.
    3) Create data access to Oracle 10g XE via some ODBC
    connection from a C++ runtime application.You can download ODBC drivers from the same location on OTN you downloaded XE. I do not know whether XE includes ODBC drivers. ODBC drivers will usually still require you to configure the Oracle Networking.
    There are a number of items that make me believe you do not have a good grasp of Oracle architecture and basics. If true, I encoureage you to start reading the Concepts manual found for the database at http://docs.oracle.com, or at least the O'Reilly book 'Oracle Essentials' found at http://oracle.oreilly.com

  • Database creation in oracle 9i

    can any one tell me step of database creation in oracle 9i
    i try many times from 2 days through script because my DBCA is not open
    when i click it. DBCA created orcl during instalation but now
    it is not running. will i have to install it ?
    1)i add db_name=mukesh below db_name=orcl and run script but errors
    2)i crete initm.ora by copy init.ora and change db_name=orcl by db_name=mukesh
    in initm.ora but errors
    1)when i use init.ora without adding db_name=mukesh
    i also change undo_management by AUTO to manual i get
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile=D:\oracle\admin\orcl\pfile\init.ora nomount
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> create database mukesh
    2 datafile 'D:\oracle\oradata\mukesh\system01.dbf' size 325m
    3 logfile
    4 group 1 ('D:\oracle\oradata\mukesh\redo01.log') size 100m,
    5 group 2 ('D:\oracle\oradata\mukesh\redo02.log') size 100m,
    6 group 3 ('D:\oracle\oradata\mukesh\redo03.log') size 100m;
    create database mukesh
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-01504: database name 'mukesh' does not match parameter db_name 'orcl'
    after that i add db_name=mukesh below db_name=orcl
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup pfile=D:\oracle\admin\orcl\pfile\init.ora nomount
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> create database mukesh
    2 datafile 'D:\oracle\oradata\mukesh\system01.dbf' size 325m
    3 logfile
    4 group 1 ('D:\oracle\oradata\mukesh\redo01.log') size 100m,
    5 group 2 ('D:\oracle\oradata\mukesh\redo02.log') size 100m,
    6 group 3 ('D:\oracle\oradata\mukesh\redo03.log') size 100m;
    create database mukesh
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00200: controlfile could not be created
    ORA-00202: controlfile: 'D:\oracle\oradata\orcl\CONTROL01.CTL'
    ORA-27038: skgfrcre: file exists
    OSD-04010: <create> option specified, file already exists

    Hi,
    If you getting a problem with DBCA go for manually process:-
    I had listed steps which I follow
    Step 1: Decide on Your Instance's System Identifier (SID)
    Step 2: Create the Initialization Parameter File
    Note:- Name the copied init.ora file init<SID>.ora because this is the default naming convention that the Oracle server looks for when it tries to start up the instance ORACLE_HOME/dbs directory (exists over the prefered path)
    Edit this file's parameters so that your database and your instance will run effectively on your system.
    DB_NAME Must be set to a text string of eight characters or less. During database creation, the value assigned to DB_NAME is recorded in the database's datafiles, redo log files, and control files. If, when you attempt to start the database instance, the value of DB_NAME as recorded in the initialization parameter file and the database name in the control files are not the same, the database will not start.
    DB_DOMAIN A text string that specifies the network domain where the database is created.
    CONTROL_FILES Is assigned the comma-separated list of control file names to use for the new database. When you execute the CREATE DATABASE statement, the control files listed as values assigned to this parameter are created. If you fail to specify a filename for the CONTROL_FILES parameter, Oracle creates a file with a default operating system dependant filename.
    DB_BLOCK_SIZE Specifies the standard block size of the database. This size is used in the creation of the system tablespace and by default in any other tablespaces created. Take care when determining what this value should be because after the database is created, the value cannot be changed.
    UNDO_MANAGEMENT Determines whether the database starts in automatic undo management mode. A value of AUTO enables automatic undo management; MANUAL enables manual undo management mode. In 9i, AUTO is suggested, but MANUAL is default.
    UNDO_TABLESPACE When the instance starts in automatic undo management mode, it needs to have a tablespace in which to store its undo information. The default is SYS_UNDOTBS and is automatically created if you execute a CREATE DATABASE statement with the UNDO_MANAGEMENT initialization parameter set to AUTO and no UNDO TABLESPACE statement in the CREATE DATABASE statement.
    Step 3: Connect to and Start the Instance
    Connect to the instance as SYSDBA either using operating system authentication or the password file method of authentication and start up the instance using the STARTUP command.
    sqlplus '/ as sysdba'
    If your parameter file is not in the default location or is not named init<SID>.ora, you may need to specify the PFILE clause in the STARTUP command for the instance to start.
    Because you do not yet have a database attached to the instance, you need to start up the instance in NOMOUNT state:
    startup nomount;
    The instance is now started and ready for the CREATE DATABASE command.
    Step 4: Issue the CREATE DATABASE Statement
    create database mydb1 controlfile reuse
    Logfile
    Group 1 ('/mydb1/log1/log01a.log',
    '/mydb2/mydb1/log01b.log') size 50M,
    Group 2 ('/mydb1/log1/log02a.log',
    '/mydb2/log1/log02b.log') size 50M,
    Group 3 ('/mydb1/log1/log03a.log',
    '/mydb2/mydb1/log03b.log') size 50M
    Datafile '/mydb1/mydb1_system.dbf' 250M
    AUTOEXTEND ON MAXSIZE 500M
    Undo tablespace mydb1_undo1
    Datafile '/mydb/mydb1/mydb1_undo1.dbf' 50M
    Default temporary tablespace mydb1temp tempfile
    '/mydb/mydb1/mydb1temp1.dbf' size 75M
    Extent management local
    Character set US7ASCII
    MAXLOGFILES 10
    MAXLOGMEMBERS 10
    MAXLOGHISTORY 1
    MAXDATAFILES 500;
    Thanks
    Pavan Kumar N

  • Encryptind and decrypting database column in oracle 10g

    hi guys...
    i am sai sandeep,i got a doubt how to encrypt a database column in oracle 10g..?
    i am using a table " emp_uid " ,and strtucture as follows,
    create table emp_uid(user_id varchar2(20),pwd varchar2(20));
    i need to encrypt a pwd column in the emp_uid.
    how to do it..?
    thanking u  advance.....

    Ok, here's a basic example...
    SQL> create table myusers (username varchar2(30), password varchar2(40));
    Table created.
    SQL> create or replace procedure add_user(username in varchar2
      2                                      ,password in varchar2) is
      3  begin
      4    insert into myusers (username, password)
      5      values (add_user.username
      6             ,dbms_crypto.hash(utl_raw.cast_to_raw(add_user.username||'!'||add_user.password)
      7                              ,dbms_crypto.hash_sh1)
      8             );
      9    commit;
    10  end;
    11  /
    Procedure created.
    SQL> exec add_user('Fred','Fr3ddy')
    PL/SQL procedure successfully completed.
    SQL> select * from myusers
      2  /
    USERNAME                       PASSWORD
    Fred                           E5C975DB4C0A1CF65683E36421A6305F09F4EA9A
    SQL> set serverout on;
    SQL> create or replace procedure loginuser(username in varchar2
      2                                       ,password in varchar2) is
      3    v_hash     varchar2(40);
      4    v_username varchar2(30);
      5  begin
      6    v_hash := dbms_crypto.hash(utl_raw.cast_to_raw(loginuser.username||'!'||loginuser.password), dbms_crypto.hash_sh1);
      7    select username
      8    into   v_username
      9    from   myusers
    10    where  username = loginuser.username
    11    and    password = v_hash;
    12    dbms_output.put_line('User: '||v_username||' logged in.');
    13  exception
    14    when no_data_found then
    15      dbms_output.put_line('Username/Password is not valid!');
    16  end;
    17  /
    Procedure created.
    SQL> exec loginuser('Fred','Freddy');
    Username/Password is not valid!
    PL/SQL procedure successfully completed.
    SQL> exec loginuser('Fred','Fr3ddy');
    User: Fred logged in.
    PL/SQL procedure successfully completed.
    Ideally you would do the hashing of the password inside the client side application so only the Hashed value goes over the network, but the above demonstrates the principle of using hashes to store passwords.  Because it's a one way algorithm, only a brute force method can be used to try and determine the original password.  There is no way to directly un-hash the value.  To check for a valid login, we don't retrieve the password and try to unhash it to compare against what the user has supplied, we actually take what the user has supplied and hash that in the same way and then compare the hashes.
    The point of including the username or some other data in the hashing process means that if two users have the same password, they will still have different hash values, so it won't be apparent they are the same passwords.  In my example, the point of putting another character between the concatenation of username and password is in case the username and password together would give the same result e.g.
    If we had one user "Fred" with password "Fr3ddy" then just concatenating the strings would give "FredFr3ddy".
    If we had another user "FredF" and he happened to choose a password "r3ddy" then just concatenating those would also give "FredFr3ddy"
    by introducing a known breaking character they would be different e.g. "Fred!Fr3ddy" and "FredF!r3ddy" and hence give different hash values.
    That's the basics of how passwords are stored for security.
    It would take a lot of processing power and brute force methods just to determine a single password for a single user when using hashing methods of security.
    With encryption, a brute force method could be used to find the decryption key, and once found that could be used to decrypt ALL the encyrpted data, hence it is less secure, especially when some clever person will no doubt have written the key down somewhere so they don't forget it.  With hashing there's no key to write down. 

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • Standby database creation notes by metalink

    Can any body send me good Standby database creation notes by metalink.

    Are you wanting to see notes for physical or logical standby and what Database version and OS?
    Use the knowledge browser in Metalink and click the database link in the Support Categories section on the left of the page and select Dataguard under the High Availability Section on the resulting page.

  • PUBLIC database account on oracle 10g - what are the default privilages?

    Hi there,
    I was wondering what are the default privileges to PUBLIC database account on oracle 10g R2. Could somebody explain it? Thank you in advance.

    There is not a user PUBLIC. There cannot be a user PUBLIC. Users and roles share the same name space so if there is a role PUBLIC, there can not be a user PUBLIC.
    The catalog table user$ contains both roles and users. The usage is determined by the TYPE# column - 1 = user, 0 = role.
    select user#, name, type# from user$  order by 1
    sys@esdb01:pncl# /
         USER# NAME                               TYPE#
    ========== ============================== ==========
             0 SYS                                     1
             1 PUBLIC                                  0
             2 CONNECT                                 0
             3 RESOURCE                                0
             4 DBA                                     0
             5 SYSTEM                                  1Try it yourself and see.
    SQL> create role foo;
    Role created.
    SQL> create user foo identified by bar;
    create user foo identified by bar
    ERROR at line 1:
    ORA-01920: user name 'FOO' conflicts with another user or role name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SAP database cluster for oracle 10g

    Dear Experts,
    Can anybody give me some idea on how do SAP database clustering for oracle 10g on two different remote system.
    Is there any sapnote for this or any other help document. Is it possible to do on two different remote system.
    Please guide me.
    Thanks n regards
    Bhaskar

    Hi Bhaskar,
    do you have SDN account, that allow you to access customer available information in SDN?
    If yes,  please look at the
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8cd93-f1e9-2910-c186-86bfff3dac63">MSCS Configuration and Support Information for SAP NetWeaver '04 and 7.0</a>
    On page 20 you will find some helpful information.
    best regards

  • Errors in manual creation of oracle 10g database

    I created oracle 10g database manually and i am getting post installation errors.. could you please help out?
    I executed @?/sqlplus/admin/pupbld.sql but it still shows
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    i tried to see
    SQL> desc product_user_profile;
    ERROR:
    ORA-04043: object "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" does not exist
    not there?? any other scripts to be run ? please guide me.
    2. I can not able login sys@sid as sysdba
    SQL> select * from v$pwfile_users;
    no rows selected
    i changed
    remote_login_passwordfile string EXCLUSIVE
    re-started db but no help...
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    I re-created
    $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwmydb.ora password=xxxx entries=5 force=y
    but no help..
    Could one please help out... ! great thanks in advance..

    thanks for prompt reply .. but still one issue remain..
    oracle DEVS $ sqlplus sys@sid sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Thu Jan 7 10:51:44 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    but i can able to login as sqlplus sys as sysdba
    SQL> select * From v$pwfile_users;
    no rows selected
    i tired to do
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    '/u02/app/oracle/product/10.1.0/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    there is already one password file with orapwsid.ora.. how this should be solved ? please help. thanks

Maybe you are looking for