Need temp tables in Standby Database

I have created a standby database that is going to be used for reporting as well. I was told that no temp tables can be created for reporting. I have created a temp tablespace on my primary and a tempfile on my standby and I'm able to put it into read-only mode and run queries. But the developers need the ability to create temp tables for certain reports to run. How can I get around this with my standby database? Is there any way to use temp tables from the primary when running these reports on the standby?
Any suggestions would be greatly appreicated!
Thanks,
Bea Cary
DBA

I need couple of temp tables when my process starts, load the data into them, do all calculationsSQL Server has Temp Table because it does not have the flexibility for SQL as Oracle Does. I bet you can achieve what every you are trying to do in SQL Server by storing in a temp table by just single SELECT statement in oracle.
With the latest introduction of MODEL clause we can really do magic in SQL. Even then if you want to store your data you can go for Collection Types in PL/SQL.
Thanks,
Karthick.

Similar Messages

  • Need advice regarding physical standby databases in rac environment on orac

    need advice regarding physical standby databases in rac environment on oracle 10G r2
    I like to have have a Primary ( 10 node RAC cluster ) shipping to a physical standby ( 3 node RAC cluster ) shipping using LGWR .
    So I have a lot of questions
    1) What will be the performance overhead on the Primay if we are using LGWR SYNC option .
    2) Does the overhead depends on the physical distance between primary & physical
    3)Do you recommend a seperate private network for shipping logs between primary and standby.
    4) I know that DGMGRL supports RAC only from 10g. So are there any know issues are bugs using DGMGRL is RAC environments.
    Thanks in advance
    -Satish

    Generally you should have same CPU architecture and same operating system but it's not mandatory to have the exactly the same CPU model, the same number of CPU, the same RAM size etc.
    Actually starting with 11.1 you don't need to have the same hardware setup: it 's even possible to have primary and standby database on different platforms: http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/standby.htm#i72053.

  • Inserts/Updates on replicated tables Logical Standby Database ??

    Hello all,
    We have a Logical standby database on 10.2.0.5. Can you please suggest if there is a way we can do data inserts/updates on replicated tables ?
    Can this be done by doing a alter database guard none; or alter session disable|enable guard; ?? Even if it completes succesfully , will this have any effect on replication later ?

    Hello all,
    We have a Logical standby database on 10.2.0.5. Can you please suggest if there is a way we can do data inserts/updates on replicated tables ?
    Can this be done by doing a alter database guard none; or alter session disable|enable guard; ?? Even if it completes succesfully , will this have any effect on replication later ?

  • Need help on Physical standby database

    Currently our physical standby database is running in manual mode and logs are applied by me manually delay of 2 days.
    And also when I add a data file in the primary database ,I've to manually add the file again on the standby .
    This process is becoming too laborious, now I want to automate this process,
    Now my question is
    For automating this process ,do I need to bounce the database ?
    I want to have 2 days gap for archive log apply process? How should I do that.
    And what all parameters I need to change.
    Please advice....
    Verison Oracle 9.2.0.7
    OS-solaris 10

    Duplicate thread
    [duplicate thread | http://forums.oracle.com/forums/thread.jspa?threadID=699262&tstart=0 ]

  • Do i need sames OS for standby database?

    Im planning on implementing a stand by database for my production db, and i have a few questions.-
    1.- Do i need to have the same os?
    2.- Do i need a license for a standby db?
    Thanks

    elvyscruz wrote:
    Im planning on implementing a stand by database for my production db, and i have a few questions.-
    1.- Do i need to have the same os?It depends on version which you don't tell us. For 11g no ([http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/standby.htm#i72053]) for other versions basically yes, though you will likely get away with small point differences in os version). I'd argue that for best practice for physical standby the answer is yes, not least since you'll likely want to do role switchover as part of your operational requirements - changing OS at the same time as Role switchover just adds unnecessary complexity.
    2.- Do I need a license for a standby db?
    Yes. See the OLSA at [http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?section=11365&media=os_local_license_agreement] especially
    >
    Failover: Subject to the conditions that follow below, your license for the following programs, Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One), Oracle Database Enterprise Edition Options, Oracle Internet Application Server (Enterprise Edition, Standard Edition, Standard Edition One or Java Edition), Oracle Internet Application Server Options, Business Intelligence Suite Enterprise Edition Plus, Business Intelligence Server Enterprise Edition, Business Intelligence (Standard Edition or Standard Edition One), WebLogic (Server Standard Edition, Server Enterprise Edition, Suite, Suite Options or Application Grid), Tuxedo and Adapters, Oracle Enterprise Repository, Entitlements Server, Entitlements Server Security Module, Directory Services, Identity Federation and those programs with “BEA” in the program name includes the right to run the licensed program(s) on an unlicensed spare computer in a failover environment for up to a total of ten separate days in any given calendar year (for example, if a failover node is down for two hours on Tuesday and three hours on Friday, it counts as two days). The above right only applies when a number of machines are arranged in a cluster and share one disk array. When the primary node fails, the failover node acts as the primary node. Once the primary node is repaired, you must switch back to the primary node. Once the failover period has exceeded ten days, the failover node must be licensed. In addition, only one failover node per clustered environment is at no charge for up to ten separate days even if multiple nodes are configured as failover. Downtime for maintenance purposes counts towards the ten separate days limitation. When licensing options on a failover environment, the options must match the number of licenses of the associated database. Additionally, when licensing by Named User Plus, the user minimums are waived on one failover node only. Any use beyond the right granted in this section must be licensed separately. In a failover environment, the same license metric must be used for the production and failover nodes when licensing a given clustered configuration.
    Edited by: Niall Litchfield on Sep 8, 2008 2:14 PM
    Edited by: Niall Litchfield on Sep 8, 2008 2:15 PM

  • Do I need to use standby database in begin backup mode to take the backup?

    Hi All,
    I have a 10g(10.2.0.4) primary database with standby on a solaris platform. I need to create another standby database for the same primary.
    I have stopped the recovery on existing standby database and started copying(os copy) the files from existing standby to 2nd standby server. However I haven't kept the existing standby database(mounted) in begin backup mode. Is it okay?
    Thanks,
    Arun

    Backup mode for a mounted database?
    orclz>
    orclz> startup mount
    ORACLE instance started.
    Total System Global Area  788529152 bytes
    Fixed Size                  3050600 bytes
    Variable Size            373293976 bytes
    Database Buffers          406847488 bytes
    Redo Buffers                5337088 bytes
    Database mounted.
    orclz>
    orclz> alter database begin backup;
    alter database begin backup
    ERROR at line 1:
    ORA-01109: database not open
    orclz>

  • Recover the standby database

    Hi, I have both primary and standby database in ASM and I need to recover the standby database as it's falling behind for too long. The steps I did are:
    1. backup full database on primary
    2. create a standby controlfile and copy to /tmp on the standby
    3. on the standby, RMAN>restore standby controlfile from '/tmp/std.ctl';
    4. RMAN>restore database;
    5. SQL>recover managed standby database disconnect;
    However, the recovery always shuts down and I get the error:
    ORA-01110: data file 1: '+W08_DATA_DG/w08p/datafile/system.295.662256331'
    What's wrong with my steps?
    Your suggestion is greatly appreciated!

    the directory structures are the same. The standby was working before. It's just falling behind so I want to restore it from the new backup. Here is the init.ora
    *.audit_file_dest='/opt/app/oracle/admin/W08P/adump'
    *.background_dump_dest='/opt/app/oracle/admin/W08P/bdump'
    *.cluster_database_instances=2
    *.cluster_database=false
    *.compatible='10.2.0.3.0'
    *.control_files='+W08_DATA_DG/w08p/control01.ctl','+W08_RECOVERY_DG/w08p/control02.ctl','+W08_DATA_DG/w08p/control03.ctl'
    *.core_dump_dest='/opt/app/oracle/admin/W08P/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+W08_DATA_DG'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='W08P'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=W08PXDB)'
    *.event='10298 trace name context forever, level 32'
    *.job_queue_processes=10
    *.log_archive_dest_1='LOCATION=+W08_RECOVERY_DG/W08P/'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_archive_max_processes=6
    *.open_cursors=1000
    *.optimizer_index_caching=70
    *.optimizer_index_cost_adj=30
    *.pga_aggregate_target=1459617792
    *.processes=300
    *.remote_login_passwordfile='exclusive'
    *.sessions=1000
    *.sga_target=1610612736
    *.undo_management='AUTO'
    *.undo_retention=26000
    W08P.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/opt/app/oracle/admin/W08P/udump'
    standby_archive_dest='LOCATION=+W08_RECOVERY_DG/W08P'
    CONTROL_FILE_RECORD_KEEP_TIME=0
    standby_file_management=auto
    fal_server=w08p
    fal_client=w08p_stby
    control_file_record_keep_time=90
    ~

  • Standby Database in 10g Standard One

    Hello Everyone,
    I need to do a standby database using Oracle Database 10g Standard One.
    Do you know how can I do it, step by step??
    Thanks

    Standby or so called dataguard after 9i is not availible in standard edition nor standard one.

  • CONFIGURE STANDBY DATABASE IN 10G

    hi experts,
                  Need help for configuring standby database in Oracle 10g/Windows.

    Hi Sumeesh,
    Please refer the below mentioned link for configuring data guard.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10823/create_ps.htm
    Below mentioned are the sequence of stpes, which needs to be followed for setting up data guard.
    3.1     Configuring the Primary Database     
    3.1.1     Enable archiving and define a local archiving destination     
    3.1.2     Create a password file     
    3.1.3     Configuring the Oracle networking files     
    3.1.4     Set initialization parameters on the primary database     
    3.1.5     Take Offline/Online backup of the primary database     
    3.1.6     Create a control file for the standby database     
    3.1.7     Prepare initialization parameter file for the standby database and start the primary database with the changed pfile.     
    3.1.8     Copy all files from the primary host to the standby host     
    3.2     Configuring the Standby Database     
    3.2.1     Configuring the Oracle networking files     
    3.2.2     Create a INIT parameter file for the standby database     
    3.2.3     Copy the standby controlfile to the appropriate location     
    3.2.4     Create Oracle Password File     
    3.2.5     Start the physical standby database     
    3.2.6     Initiate log apply services
    Regards,
    Ranjith

  • Redo log files are not applying to standby database

    Hi everyone!!
    I have created standby database on same server ( windows XP) and using oracle 11g . I want to synchronize my standby database with primary database . So I tried to apply redo logs from primary to standby database as follow .
    My standby database is open and Primary database is not started (instance not started) because only one database can run in Exclusive Mode as DB_NAME is same for both database.  I run the following command on the standby database.
                SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    It returns "Database altered" . But when I checked the last archive log on primary database, its sequence is 189 while on standby database it is 177. That mean archived redo logs are not applied on standby database.
    The tnsnames.ora file contains entry for both service primary & standby database and same service has been used to transmit and receive redo logs.
    1. How to resolve this issue ?
    2.Is it compulsory to have Primary database open ?
    3. I have created standby  control file by using  command
              SQL> ALTER DATABASE CREATE STANDBY CONTROLFILE AS ‘D:\APP\ORACLE\ORADATA\TESTCAT\CONTROLFILE\CONTROL_STAND1.CTL‘;
    So database name in the standby control file is same as primary database name (PRIM). And hence init.ora file of standby database also contains DB_NAME = 'PRIM' parameter. I can't change it because it returns error of mismatch database name on startup. Should  I have different database name for both or existing one is correct ?
    Can anybody help me to come out from this stuck ?
    Thanks & Regards
    Tushar Lapani

    Thank you Girish. It solved  my redo apply problem. I set log_archive_dest parameter again and then I checked archive redo log sequence number. It was same for both primary and standby database. But still table on standby database is not being refresh.
    I did following scenario.
    1.  Inserted 200000 rows in emp table of Scott user on Primary database and commit changes.
    2. Then I synchronized standby database by using Alter database command. And I also verify that archive log sequence number is same for both database. It mean archived logs from primary database has been applied to standby database.
    3. But when I count number of rows in emp table of scott user on standby database, it returns only 14 rows even of redo log has been applied.
    So my question is why changes made to primary database is not reflected on standby database although redo logs has been applied ?
    Thanks

  • Manually Setting up a Standby Database for RAC Environment

    Hi,
    I am a Junior DBA so apologies if this sounds like a silly question.
    We have production 11g Extended RAC environment setup. Management have asked for a separate single instance database be setup as a standby DB on a separate 'cold' server in case we lose complete connection to both sides of the RAC. I read up on Oracle Data Guard and presented this as a solution, but they seem adamant about manually going in and copying out the latest backup and archive logs over to the standby database.
    Can this be done? I mean, can ASM managed backup files and archive logs from one database be simply copied out of the backup directory and imported into a completely separate database as easy as that?
    We are using ASM to manage to data files on the RAC. My understanding is that we cant manually access the files on an OS level when using ASM, but maybe I am wrong. Any help or opinions on this would be greatly appreciated.
    Rgs,
    Rob

    Hi,
    Can this be done? I mean, can ASM managed backup files and archive logs from one database be simply copied out of the backup directory and imported into a completely separate >database as easy as that?Yes, but depends on DB version.
    what is the DB version.
    from 11g you have cp command so there is a possibility to copy generated archive logs to standby location, so that you can apply..
    In 10g there is no such option. you need to create a standby database. with automatic shipping
    Thanks

  • Standby database with different directory structure

    Hi,
    sorry to say that we are in desupported version due to some constraint.
    oracle version : 8.1.7.0.0.
    os:sun 5.9
    I need to create physical standby database with different directory structure:
    i have created standby database with same directory structure of primary, now i have requirement to create with different directory structure.
    in oracle 8i we can not give multiple parameter for db_file_name_convert(ORA-01678: parameter db_file_name_convert must be two strings, a pattern and a replacement) and i do have partitions in primary as follows:
    bash-2.05$ df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0       20G    14G   5.6G    72%    /
    /proc                    0K     0K     0K     0%    /proc
    mnttab                   0K     0K     0K     0%    /etc/mnttab
    fd                       0K     0K     0K     0%    /dev/fd
    swap                    11G    40K    11G     1%    /var/run
    dmpfs                   11G     0K    11G     0%    /dev/vx/dmp
    dmpfs                   11G     0K    11G     0%    /dev/vx/rdmp
    swap                    11G   656K    11G     1%    /tmp
    /dev/dsk/c1t0d0s3       25G    18G   6.8G    72%    /oracle
    /dev/vx/dsk/suportaldg/oracle1
                            12G    11G   1.1G    91%    /oracle1
    /dev/vx/dsk/suportaldg/oracle2
                            12G   8.1G   3.7G    69%    /oracle2
    /dev/vx/dsk/suportaldg/orapurge
                           200G   182G    17G    92%    /orapurge
    /dev/vx/dsk/suportaldg/oracle3
                            12G    10G   1.9G    85%    /oracle3
    /dev/vx/dsk/suportaldg/oracle4
                            12G    12G    58M   100%    /oracle4
    /dev/vx/dsk/suportaldg/oracle5
                           7.0G   5.9G   1.0G    86%    /oracle5
    /dev/vx/dsk/suportaldg/oracle6
                           7.0G   6.4G   564M    93%    /oracle6
    /dev/vx/dsk/suportaldg/oracle7
                            23G    23G   358M    99%    /oracle7
    /dev/vx/dsk/suportaldg/oracle8
                            13G    13G   165M    99%    /oracle8
    /dev/vx/dsk/suportaldg/oracle9
                            23G    22G   1.4G    94%    /oracle9
    /dev/vx/dsk/suportaldg/oracle10
                            12G  10.0G   1.9G    85%    /oracle10
    /dev/vx/dsk/suportaldg/oracle11
                            39G    36G   2.1G    95%    /oracle11
    /dev/vx/dsk/suportaldg/oracle12
                            39G    38G   1.1G    98%    /oracle12
    /dev/vx/dsk/suportaldg/oracle13
                            68G    65G   2.6G    97%    /oracle13
    /dev/vx/dsk/suportaldg/oracle14
                           200G   199G   1.3G   100%    /oracle14
    /dev/vx/dsk/suportaldg/oracle15
                           200G   196G   3.6G    99%    /oracle15
    /dev/vx/dsk/suportaldg/oracle16
                            70G    64G   5.5G    93%    /oracle16
    /dev/vx/dsk/suportaldg/oracle20
                           7.0G   6.4G   609M    92%    /oracle20
    /dev/vx/dsk/suportaldg/oracle50
                            28G    26G   2.0G    93%    /oracle50
    /dev/vx/dsk/suportaldg/oratranslog
                           185G   165G    19G    90%    /oratranslogso how i can create standby database with different directory structure, help is appreciated.
    Thanks
    Edited by: prakashdba on Mar 5, 2009 11:04 PM

    Looks like very difficult and inform you mgmt about the drawbacks of running olderv ersions
    may be you can try something like this but i dont know whether it is supported or not
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle3','/dev/vx/dsk/suportaldg/STDBY/oracle3']
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle4','/dev/vx/dsk/suportaldg/STDBY/oracle4']
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle5','/dev/vx/dsk/suportaldg/STDBY/oracle5']

  • Data Guard - Steps to install Physical standby database in an RHEL 5.6 x86

    HI Team,
    I need to install Physical standby database in a OS installed from factory with most basic packages. Please find the info in detail
    Standby Server :
    Database Version : 10g Release 2
    Operating System : Red Hat Enterprise Linux Server release 5.6 (Tikanga) , RHEL 5.6 x86_64
    swartis.dc$ free -m
    total used free shared buffers cached
    Mem: 34158 33847 311 0 558 28367
    -/+ buffers/cache: 4921 29237
    Swap: 10001 63 9937
    - Things i need to validate in the PROD server. Eg : Are the prod db version & standby db version should be the same, Do the OS need to be same ............ETC
    - Basic Linux rpm required for standby server & any other pre-requisites required at standby server
    - Verify connectivity speed btw servers to decide log file size
    - Please give me more detailed steps , where i need to start the steps in installation of Physical standby database.
    Thanks in advance.
    -- Rakesh
    Edited by: Rakesh on Jan 10, 2012 8:23 AM

    Hello again;
    Sorry for the Delay.
    To this question "Do i need to install 10.2.0.2.0 ORACLE_HOME & on top of it apply 10.2.0.3.0 patchset.?"
    Yes.
    All my Oracle 10 installs started with 10.2.0.1 and then I patched up from there. If I remember correctly 10.2.0.1 may bark on Red Hat 5.
    You can work around this by reviewing this file :
    /etc/redhat-releaseSave whatever is in there somewhere and replace it with :
    redhat-3After the install put back what was there and get rid of the "redhat-3".
    I extra RPM's I used were :
    rpm -ivh kernel-headers-2.6.18-164.el5.x86_64.rpm
    rpm -ivh  compat-libstdc++-33* libaio-devel*.x86_64.rpm
    rpm -ivh elfutils-libelf-devel*.x86_64.rpm glibc-devel-2* gcc-4*.x86_64.rpm gcc-c++-4*.x86_64.rpm libstdc++-devel-4*.x86_64.rpm glibc-headers*.x86_64.rpm libgomp*.x86_64.rpm
    rpm -ivh  compat-libstdc++-33* libaio-devel*.x86_64.rpm
    rpm -ivh sysstat*I searched my Red Hat Disks before hand and ran the RPM commands as shown. Adjust as needed.
    To verify that the required packages have been installed on your system, run the following command :
    pm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" binutils \
    compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc \
    glibc-common glibc-devel-2.5 libaio libaio-devel libgcc libstdc++ libstdc++-devel \
    make sysstatThis document is for Oracle 11, but the OS part should be the same.
    http://www.visi.com/~mseberg/installing_oracle_11g_r2_64.html
    Currently I have 3 servers running both Oracle 10 and 11 ( In different homes ) using this OS.
    I have used Oracle 11 document with Oracle 10 also : ( Better once you are setup and a great standby recovery document )
    http://www.visi.com/~mseberg/duprman2.html
    Best Regards
    mseberg

  • Physical standby database error

    Hi,
    I try to create physical standby in my local machine using oracle 10g
    version :10.2.0.1.0
    Os: windows xp.
    I followed steps and parameter files
    on primary :-
    sql>alter database force logging;
    orcl.__db_cache_size=155189248
    orcl.__java_pool_size=4194304
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=75497472
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0/admin/orcl/adump'
    *.background_dump_dest='D:\oracle\product\10.2.0/admin/orcl/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\oracle\product\10.2.0\oradata\orcl\control01.ctl','D:\oracl
    e\product\10.2.0\oradata\orcl\control02.ctl','D:\oracle\product\10.2.0\orad
    ata\orcl\control03.ctl'
    *.core_dump_dest='D:\oracle\product\10.2.0/admin/orcl/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name='orcl'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=80740352
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=244318208
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0/admin/orcl/udump'
    *.log_archive_dest_1='LOCATION=D:\oracle\archive
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orcl'
    *.log_archive_dest_2='SERVICE=stby LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=stby'
    *.log_archive_format=%t_%s_%r.arc
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    On standby
    orcl.__db_cache_size=155189248
    orcl.__java_pool_size=4194304
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=75497472
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\stby\adump'
    *.background_dump_dest='D:\stby\bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\stby\ctrl.ctl'
    *.core_dump_dest='D:\stby\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name='stby'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=80740352
    *.processes=150
    *.remote_login_passwordfile='NONE'
    *.sga_target=244318208
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\stby\udump'
    *.db_file_name_convert='D:\oracle\product\10.2.0\oradata\orcl','D:\stby'
    *.log_file_name_convert='D:\oracle\product\10.2.0\oradata\orcl','D:\stby'
    *.log_archive_dest_1='LOCATION=D:\oracle\archive
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stby'
    *.log_archive_dest_2='SERVICE=orcl LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=orcl'
    *.standby_archive_dest='D:\stby\archive'
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    *.standby_file_management='AUTO'
    *.fal_server='orcl'
    *.fal_client='stby'
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup pfile=D:\stby\initstby.ora nomount;
    ORACLE instance started.
    Total System Global Area 247463936 bytes
    Fixed Size 1248332 bytes
    Variable Size 79692724 bytes
    Database Buffers 159383552 bytes
    Redo Buffers 7139328 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-01154: database busy. Open, close, mount, and dismount not allowed now
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL> alter database open read only;
    Database altered.
    SQL> select sequence#,first_time,next_time from v$archived_log order by sequence
    no rows selected
    No archive s generated in standby ..
    what i mistake.
    Reagrds
    S.Azar

    Anand... wrote:
    Firstly you can use "*select sequence#,first_time,next_time from v$archived_log order by sequence#;"* command in mount stage itself.No need to open the standby database in ready only mode.
    No rows selected in mount stage also.
    The V$ARCHIVED_LOG fixed view on the physical standby database shows all the archived redo log files received from the primary database.
    sql> select * from v$archived_log;
    no rows selected.
    and No archived logs received from primary database to physical standby . i think here i wrongly configure parameter file.
    sql> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; -- > start Redo Apply
    When you do log switch on the primary are the archive logs getting transferred to the standby database???Is there some error in the alert log file in the primary database.
    No..
    >
    [http://advait.wordpress.com/2007/06/12/setting-up-oracle-dataguard-for-10g/]
    Regards
    S.Azar

  • Clarification on creating a Physical Standby Database

    I'm practicing with data guard with Oracle 10.2.0.1.0 on two Windows 2003 servers.
    I'm in the process of creating a physical standby database by following the steps outlined in the guide http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14239/create_ps.htm
    I've created the primary database and did a cold backup of all the datafiles and copied them to the standby server using OS commands. I've created a pfile from the spile in primary database and changed the needed parameters for the standby database.
    What I don't understand is this statement I think is creating a control file for the standby database: SQL> ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/tamp/standby.ctl'
    Exactly what I don't understand is what to do with this control file. I'm thinking that if I try to use it as the controlfile for the standby database, the standby database will refuse to open since the database name in the control file wont match the one the server expects.
    I don't want to proceed until this becomes clear. So my question is what to do with the output of the above statement that seems to create a control file for the standby database.
    Any help would be appreciated.
    Dula

    >
    You're thinking wrong.
    Please clarify the difference between db_name and
    db_unique_name.
    Db_unique_name needs to be identical for both primary
    AND standby database.
    If db_unique_name differs, you'll get errors.
    Sybrand,
    Perhaps, you meant DB_NAME has to be identical for both databases.
    DB_NAME name has to be the same for both primary and physical standby database.
    DB_UNIQUE_NAME should be unique for each database in the standby configuration.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i68626
    If you configure Logical Standby Database, DB_NAME may be different.
    For the original poster: Chapter 3 - Creating a Physical Standby Database of Oracle® Data Guard Concepts and Administration has all the steps you have to do in order to configure a physical standby database.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#g88234
    Cheers,

Maybe you are looking for

  • How to create test database in system (have downloaded mxdb)

    how to create test database in system (have downloaded mxdb)...Can someone pls help as I am new to SAP

  • Text callout drawing markup

    I am currently in adobe X. I am using the drawing markup text callout. I have in my properties for that apperance no border and color red. It makes a nice red text with an arrow but no border which is what I want. Then if I go to something else and t

  • Flash - Java - SerialData Translation issues

    This is for an art installation we're building in a gallery here in NYC. It opens Saturday, and we are in a jam with a problem. I'm using Dan O'Sullivan's Serial Server http://itp.nyu.edu/~dbo3/SerialServer/SerialServer.html , which is a little java

  • Why do my Artboards keep alternating selection?

    How can I tell Illustrator to LOCK all the artboards except the one I'm working on? I am working in Illustrator CS5 and every time I deselect an item on Artboard 1 which is where all my artwork is (by clicking anywhere in artboard 2, the Artboard Pal

  • Unable to sync all of my playlist.

    I am only able to sync about 50 % of my playlist. After that the Itunes freezes.  Also I get  "the Ipod "Graeme's Ipod " cannot be synced, a dulicate file name was specified.  even I tunes purchased won't sync.