Oracle Database down /failover clause ?

hi
I am collecting the information regarding oracle database down / failover clouses , so all of you requested kindly send me your experience regarding Oracle database down/failover reason/clause.
thanks in advance
regards

Hi,
Are you looking for notes or scenarious.
If you are looking for some notes follow the below link:
http://pavandba.wordpress.com/category/dataguard/
Thanks,
Rafi.

Similar Messages

  • Oracle database down need help

    My company is using a program called Digital Collections (DC4) from GMTI. We have an oracle database on the backend. Recently the server's raid array fan went out and we lost all 5 drives. We were able to recover some of the lost data from backup tapes but we can't seem to locate the oracle 8.0.5 install CD's. Now, I can only download 9i which as I understand will not access oracle 8 files. All the migration howto's start by dumping the data from oracle 8 and then importing to 9i. But if I don't have 8 running how can I dump the data? Does anyone know of a solution. Either a method or utility to dump the data from the raw files or a link to download 8.0.5 Any help will be greatly appreciated.

    You can't attach oracle 8 version datafiles to 9i database or vice-versa. It was DBA's responsibility to keep the backups in case of disaster occurs at any time.
    Check with your friends about the availability of oracle 8, you will get it, if you are lucky enough.
    Jaffar

  • How to configure Oracle database in a failover zone cluster

    Setup: Oracle database and zone configured on highly available local filesystems.
    Two node cluster.
    Oracle database running inside the zone.
    Note: I dont have a zone cluster.
    1. I need to make the zone and the oracle database highly available.
    2. Can I configure the Oracle Data service directly to run in the zone or will it involve creating sczsh_config script to do the same.
    I have been going through the guides and searching over the net, but haven't found any help so far. Its so much simpler to configure this environment in Veritas cluster. Hope I find some help here.
    TIA,
    Sudhir

    The Oracle Solaris Cluster concepts guide has some information on which zone model to choose:
    http://docs.oracle.com/cd/E18728_01/html/821-2682/gcbkf.html#scrolltoc
    When managing a Solaris zone with the HA Zones agent, the cluster basically regards the non-global zone as a blackbox.
    As such you can either start the Oracle database as part of the runlevel/SMF startup of the non-global zone, or you can use the sczsh or sczsmf component and use your own scripts to start, probe and stop the Oracle database.
    Usage of the standard HA Oracle data service is not supported in combination with the HA Zones agent.
    If you require a more fine grained control of services running in non-global zones, why not setup a zone cluster and then having HA Oracle failover the Oracle database between non-global zones?
    Regards
    Thorsten

  • EM12c Oracle Database Plug-In 12.1.0.7 update now shows 10g listener as down when it's not

    EM 12.1.0.4 with Oracle Database Plug-in 12.1.0.7
    Monitored database and listener:  10.2.0.4
    Our EM12c monitors 12.1,11.2 and 10.2 databases and listeners.  All monitored targets are up and running.
    I updated Oracle Database Plug-in from 12.1.0.6 to 12.1.0.7 and now the only 10g listener that I have shows as down.
    The listener on the server is up and running.
    The monitoring configuration is right.
    I removed this target and re-added it, but it came back as down.
    It's a little disconcerting to have a listener show as down since it's a production box, but nothing I do corrects the problem.
    Any insights or suggestions are appreciated.
    Sherrie

    Hi Sherrie,
    In most cases we have this issue due to monitoring configuration , I know you mentioned that you have checked on it but still I would recommend to just re-confirm on below steps
    1. Go to
        EM Console -> Targets -> Listener -> Listener Home page -> Target Setup -> Monitoring Configuration
    2. Get the details
          Listener Name
          Listener.ora Directory
          Machine Name
          Oracle Home
          TCP Port Numbe
    3. Go to the server where this listener is running
       Check to see if the listener is up
           ps -ef | grep tns
    4. Next run
           $ORACLE_HOME/bin/lsnrctl status
       From this outpuy verify details in (1)
          Listener Name   <======= Alias
          Listener.ora Directory <=== Listener Parameter File ie the directory
          Machine Name  <======= HOST=
          Oracle Home<========== This is where tnslsnr is started from
          TCP Port Number <======  PORT=
    5. Makes sure that all the details matches in (4) and (2)
    If above is fine then I would recommend to go through the troubleshooting steps as per below doc , they are valid for listener status down too and should give a further insight on the root cause of the issue
    Troubleshooting the 'Pending' status for a Listener Target in Enterprise Manager 12c Cloud Control (Doc ID 1546576.1)
    Regards,
    Rahul

  • Populating Drop down from Oracle Database

    Can someone please help me!
    I am trying to populate a drop down list in a JSP from an Oracle database. Basically the JSP gets the user, outputs their name and then should display a drop down for them with some values in it!
    However, I seem to be getting a drop down box for each option rather than one drop down with every option from the database;
    Here is my code!
    <html>
    <head>
    <title>JDBC and JSP</title>
    </head>
    <body bgcolor="#FDF5E6">
    <h1 align="center">Welcome to Student Sigon Page!!</h1>
    <%@ page import="java.sql.*" %>
    <%@ page import= "java.util.*"%>
    <%@page import= "java.io.*" %>
    <%
    //String driverClassString = "oracle.jdbc.driver.OracleDriver";
    //String driverConnectString = "jdbc:oracle:thin:@172.17.106.78:1521:globaldb";
    //String username = "system";
    //String password = "manager";
    %>
    <table>
    <tr>
    </tr>
    <%
    Connection conn = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@Midas2:1521:globaldb", "system", "manager");
    catch (Exception e) {
    out.println("Cannot close connect to database!"+e);
    if (conn != null) {
    String login = request.getParameter("username").trim();
    String pswd = request.getParameter("password").trim();
    String sqlQuery;
    if (login !="")
    if (pswd != ""){
    sqlQuery = ("SELECT familyname, givenname FROM STUDENTINFO WHERE username='"+login+"' AND password='"+pswd+"'");
    try { // execute the query
    Statement stmt = conn.createStatement();
    ResultSet rst;
    rst = stmt.executeQuery(sqlQuery);
    // Fetch the query result, and dispaly them in a table
    while (rst.next()) {
    %>
    <tr>
    <td> Family Name:<%= rst.getString("familyname") %> </td><tr>
    <td> Given Name:<%= rst.getString("givenname") %> </td><tr>
    <tr>
    <tr>
    </tr>
    <%
    stmt.close();
    } catch(Exception e) {
         out.println("Cannot fetch data from database!"+e);
    %>
    <%
    String sqlQuery2;
    sqlQuery2 = ("SELECT code,title FROM TMPOffering");
    try { // execute the query
    Statement stmt = conn.createStatement();
    ResultSet rst2;
    rst2 = stmt.executeQuery(sqlQuery2);
    while (rst2.next()) {
    %>
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    <select>
    </td>
    </tr>
    </tr>
    <%
    stmt.close();
    catch(Exception e) {
    out.println("Cannot fetch data from database!"+e);
    %>
    </table>
    </body></html>

    Replace
    while (rst2.next()) {
    %>
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    <select>
    </td>
    </tr>
    </tr>
    <%
    }with
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <%
    while (rst2.next()) {
    %>
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    </td>
    </tr>
    </tr>
    <%
    </select>
    %>-Bharat

  • What steps to follow to make RAC Database down.

    hi all,
    I need to know the order which we have to follow in making RAC database Down Completely,
    Information reg database:
    OS::IBM AIX,
    ASM Storage,
    2 node RAC,
    2 databases.
    order in the sence to shutdown the RAC database first what we have to shutdown like ,
    database,asm,cluster, etc.and also give respective commands for reference.
    Regards,
    vamsi.

    844795 wrote:
    hi all,
    I need to know the order which we have to follow in making RAC database Down Completely,
    Information reg database:
    OS::IBM AIX,
    ASM Storage,
    2 node RAC,
    2 databases.
    order in the sence to shutdown the RAC database first what we have to shutdown like ,
    database,asm,cluster, etc.and also give respective commands for reference.
    Regards,
    vamsi.Stopping the Oracle RAC 10g Environment
    The first step is to stop the Oracle instance. When the instance (and related services) is down, then bring down the ASM instance. Finally, shut down the node applications (Virtual IP, GSD, TNS Listener, and ONS).
    $ export ORACLE_SID=orcl1
    $ emctl stop dbconsole
    $ srvctl stop instance -d orcl -i orcl1
    $ srvctl stop asm -n linux1
    $ srvctl stop nodeapps -n linux1
    Starting the Oracle RAC 10g Environment
    The first step is to start the node applications (Virtual IP, GSD, TNS Listener, and ONS). When the node applications are successfully started, then bring up the ASM instance. Finally, bring up the Oracle instance (and related services) and the Enterprise Manager Database console.
    $ export ORACLE_SID=orcl1
    $ srvctl start nodeapps -n linux1
    $ srvctl start asm -n linux1
    $ srvctl start instance -d orcl -i orcl1
    $ emctl start dbconsole
    Start/Stop All Instances with SRVCTL
    Start/stop all the instances and their enabled services. I have included this step just for fun as a way to bring down all instances!
    $ srvctl start database -d orcl
    $ srvctl stop database -d orcl
    reference:http://www.rampant-books.com/art_hunter_rac_start_stop_cluster.htm
    refer the links for more informations:
    Starting and Stopping Instances and Oracle Real Application Clusters Databases
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/dbinstmgt.htm#BCEBGHHC
    Server Control Utility Reference
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm
    answered by ssolbach
    Just a minor comment on the stop nodeapps.
    While it is fine to stop the nodeapps on the server, the drawback to this is, that the VIP will not failover if you stop the nodeapps, but will be stopped.
    Hence if you only shutdown one server, then you are causing clients to fail to connect to the VIP and having to wait for the TCP/Timeout.
    So if you are not going to shut down all the server, but just want to shutdown one node, you should failover the VIP the the other node.
    See: Note 749160.1 Vip Does Not Failover When Nodeapps Stopped
    So it is sometimes better instead of stopping the nodeapps, to simply shutdown the cluster with crsctl stop crs (which will failover the VIP).
    Sebastian
    reference:-
    Re: RAC Questions

  • Database link failover on RAC

    Dear Friends.
    Could you please provide me the information about implementation of Database links failover in RAC. (Oracle 10g RAC on linux)
    I have created db links across the two RAC environments. Each RAC setup contains 2 nodes.
    I have created DB link across the two RAC environemtns.
    i.e I have created DB link between 1st node of Source RAC system to 1st node of Target RAC system.
    If 1st node of Target RAC system is down, I need to setup in such way that the link should failover to node 2 of Target system.
    I have tried all possible options of TAF. But I did not succeed. Is there anybody is implemented this type setup...?
    How to setup tnsnames.ora on source DB to get this type of failover.
    Thanks in Advance.
    Best Regards
    Kanumuri Raju

    Oracle was kind enough to provide some configuration details in their docco. You may want to review this link:
    http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#sthref1275
    The configuration needs to be performed in the TNSNAMES.ORA associated with the database initiating the link. If you want bi-directional TAF, you would need to update the TNSNAMES.ORA for 'both' databases.
    I suggest you don't get your hopes up too high about the capability of TAF across DBLinks. I'm pretty sure you will not be able to get SELECT-based TAF. And I'm not absolutely sure which session rules will be used to determine the failover time.

  • OS level Cluster and Oracle Database...

    Is there a way to install one oracle database, on two servers that are set up in a Cluster on Operating System level so it can see it as one machine, that is: I want to use the capabilities of two servers, but to have Oracle Database see it as one server with two processors, drives etc.? Thanks,

    A pure OS cluster can only act as a failover cluster, but it cannot emulate RAC functionality.
    The database (single instance) runs on one node, in case of node down, it can be switched to the other node.
    Werner

  • Not able to connect remote oracle database over VPN

    I can not connect remote oracle database over VPN. tnsping is ok and it shows the server information of remote database. i can also telnet the 1521 port of remote database server. I can connect the same server when it is located in the same LAN. Please help me out this is very urgent.

    6b6c669e-6baa-45c4-a6dc-444aef2d5e7a wrote:
    I can not connect remote oracle database over VPN. tnsping is ok and it shows the server information of remote database. i can also telnet the 1521 port of remote database server. I can connect the same server when it is located in the same LAN. Please help me out this is very urgent.
    First, this is a forum of volunteers.  There is no "urgent" here.
    "Urgent" means one of two things -
    1) people are dying, or
    2) you have a customer-facing, revenue-producing production system that is down.
    (And to get some perspective on the second case, keep the first in mind.)
    For the first, you call whatever civil emergency service seems appropriate.
    For the second, you open an SR with Oracle - which requires a paid-up support contract. For *them* to consider your problem "urgent", you will need to demonstrate that your problem falls under item #2. I seriously doubt your problem fits that criteria.
    You don't have a support contract?  Now you know the exact dollar figure that your company places on the data.
    That said, you need to understand a few things about your specific problem,
    First, port 1521 is only used by the listener to accept a connection request.  Once it gets that request (and finds that it is for a service (sid) that it knows about, it will fork a server process and tell the requesting client that it can communicate with that server process over some other port .. a randomly chosen port number in the "high" range.  It could be your vpn is blocking that other port, whereas your internal firewall is not.
    But this is just an educated guess since I cannot find "can not connect remote oracle database over VPN" in any error message manual. If you had mentioned the VPN along with an actual oracle error message we could be much more precise in our diagnoses and recommendations.
    ---- edit 22 Sep
    It occurred to me that I just assumed you were using the same client machine in both cases ... a laptop that you use both at work (local network) and home (vpn).  If that assumption is false, there are probably problems with your tns setup on the home (vpn) machine.
    But again, it would be much easier to help if you gave us an actual error message.

  • Can't mount oracle database on linux system

    This is same as previous posting just added
    e-mail and username info fo forum posting.
    I am not able to mount an Oracle database.
    I am new to Oracle and am working on an Oracle8i installation on an
    Intel Linux Suse 6.3 platform. I am using only one harddrive and am
    not using the 4 mount points as mentioned for efficiecy purposes in
    the Oracle documentation..I am using the installation cd from Oracle8i
    for Linux Starter Kit by Oracle Press. If anyone has this book they
    can refer to pages 41-44 for the examples I followed.
    As sysdba in sqplplus using the STARTUP command I can not Mount the
    database -step 2 of the 3 stage process (Start, Mount and Open the
    database) of opening an Oracle database.
    I show the errors I encountered when I did the first 2 of the 3 steps
    in the step-by-step mode (STARTUP NOMOUNT pfile=, ALTER DATABASE
    MOUNT) in the sqlplus session and alert log respectively with startup
    nomount and alter database mount for this sqlplus session.
    Additionally I show the init.ora file lines referring to control file
    which seem to be referred to by the sqlplus error messages and the
    alert.log file. Perhaps some can give me some advice as what I can try
    to fix this problem.
    At the end of this e-mail I added several questions I had in regard to the control
    files. Any help is appreciated.
    Well, here are the sqlplus session results and its alert.log file:
    Oracle sqlplus session usr/oracle as sysdba
    oracle@CHESTNUT:~ > sqlplus
    SQL*Plus: Release 8.1.6.0.0 - Production on Mon Mar 19 20:47:49 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: usr/oracle as sysdba
    Connected to an idle instance.
    SQL> startup nomount pfile=/usr/oracle/dbs/init.ora ;
    ORACLE instance started.
    Total System Global Area 24989680 bytes
    Fixed Size 69616 bytes
    Variable Size 24637440 bytes
    Database Buffers 204800 bytes
    Redo Buffers 77824 bytes
    SQL> alter database mount ;
    alter database mount
    ERROR at line 1:
    ORA-00205: error in identifying controlfile, check alert log for more
    info
    SQL> shutdown immediate ;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> exit
    Disconnected
    oracle@CHESTNUT:~ >
    alert.log file for above session
    Mon Mar 19 20:48:38 2001
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    LICENSE_MAX_USERS = 0
    Starting up ORACLE RDBMS Version: 8.1.6.1.0.
    System parameters with non-default values:
    processes = 50
    shared_pool_size = 3500000
    control_files = ora_control1, ora_control2
    db_block_buffers = 100
    log_buffer = 32768
    log_checkpoint_interval = 10000
    db_files = 80
    db_file_multiblock_read_count= 8
    global_names = TRUE
    db_name = DEFAULT
    parallel_max_servers = 5
    max_dump_file_size = 10240
    PMON started with pid=2
    Load Indicator not supported by OS !
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    Mon Mar 19 20:48:58 2001
    alter database mount
    Mon Mar 19 20:48:58 2001
    ORA-00202: controlfile: 'ora_control1'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    Mon Mar 19 20:49:01 2001
    ORA-205 signalled during: alter database mount
    Mon Mar 19 20:49:12 2001
    Shutting down instance (immediate)
    License high water mark = 1
    Mon Mar 19 20:49:12 2001
    ALTER DATABASE CLOSE NORMAL
    ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
    archiving is disabled
    init.ora control files
    # define two control files by default
    control_files = (ora_control1, ora_control2)
    Here are my control file questions:
    I need to know several points:
    1) What are control files susposed to
    contain and how would I recognize them?
    I used the
    unix find /usr/oracle \*ctl* -print
    command to locate files with a ctl extension.
    This resulted in about a dozen such files in
    different directories as shown below:
    ./bin/lsnrctl
    ./bin/extractlib
    ./bin/agtctl
    ./bin/oidctl
    ./bin/lsnrctl0
    ./bin/agtctlO
    ./rdbms/demo/ulcase1.ctl
    ./rdbms/demo/ulcase10.ctl
    ./rdbms/demo/ulcase2.ctl
    ./rdbms/demo/ulcase3.ctl
    ./rdbms/demo/ulcase4.ctl
    ./rdbms/demo/ulcase5.ctl
    ./rdbms/demo/ulcase6.ctl
    ./rdbms/demo/ulcase7.ctl
    ./rdbms/demo/ulcase8.ctl
    ./rdbms/demo/ulcase9.ctl
    ./ldap/load/dn.ctl
    ./ldap/load/attr_store.ctl
    ./ord/ts/demo/tsquick/tsquick.ctl
    ./ord/ts/demo/usageutl/utildat.ctl
    ./ord/ts/demo/usage/stockdat.ctl
    ./ord/ts/demo/usage/stockinc.ctl
    ./ord/ts/demo/retrofit/sales.ctl
    ./ord/ts/demo/retrofit/sales2.ctl
    ./ord/ts/demo/applet/indexdemo.ctl
    ./javavm/admin/libjox8com_sun_jndi_ldap_ctl.so
    ./md/demo/examples/migctl.h
    ./md/demo/examples/migctl.c
    2) On page 100 in the book Oracle 8i A Beginners's
    by Oracle Press mention is made of a
    CREATE CONTROLFILE command that can under
    circumstances be used to re-create a control-file.
    but that is all that is said about it. Perhaps
    you might know something more about it.
    3) Would you recommend any good text for
    Oracle DBA's, especially for the problem of the sort
    that I am encountering?
    [email protected]
    null

    It's probably not supported on RHEL5/Centos5/etc., but...
    You can get the installer to function using the following steps:
    - extract the cal_linux_*.tar.gz, and cd into the OracleCalendar_inst directory
    In there is the actual installer, cal_linux.
    - the cal_linux is shell script wrapped around some binary blobs. The installer's
    problem is that Oracle is setting the LD_ASSUME_KERNEL=2.2.5 environment
    variable, which is a mistake on RHEL5. You need to make it not set that variable,
    but you need to do so in a way that the size of the shell script does not change at all,
    and none of the binary blobs are impacted.
    - the approach I took was
    mv cal_linux cal_linux.BAK
    sed -e 's/LD_ASSUME_KERNEL=2.2.5/LD_ASSUME_KERNEL= /g' < cal_linux.BAK > cal_linux
    chmod a+rx cal_linux
    cal_linux -i gui
    Note: you must have exactly 5 spaces in the substitution part of the sed command, because you're replacing 5 characters (2.2.5), and the size of the shell script must not change.
    If you do that, the installer should run (one warning from awk still) and you should be able to install the product.
    Tim

  • How to load excel-csv file into oracle database

    Hi
    I wanted to load excel file with csv extension(named as trial.csv) into
    oracle database table(named as dept),I have given below my experiment here.
    I am getting the following error,how should I rectify this?
    For ID column I have defined as number(5) datatype, in my control file I have defined as interger external(5),where as in the Error log file why the datatype for ID column is comming as character?
    1)my oracle database table is
    SQL> desc dept;
    Name Null? Type
    ID NUMBER(5)
    DNAME CHAR(20)
    2)my data file is(trial.csv)
    ID     DNAME
    11     production
    22     purchase
    33     inspection
    3)my control file is(trial.ctl)
    LOAD DATA
    INFILE 'trial.csv'
    BADFILE 'trial.bad'
    DISCARDFILE 'trial.dsc'
    APPEND
    INTO TABLE dept
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (ID POSITION(1:5) INTEGER EXTERNAL(5)      
    NULLIF ID=BLANKS,
    DNAME POSITION(6:25) CHAR
         NULLIF DNAME=BLANKS
    3)my syntax on cmd prompt is
    c:\>sqlldr scott/tiger@xxx control=trial.ctl direct=true;
    Load completed - logical record count 21.
    4)my log file error message is
    Column Name Position Len Term Encl Datatype
    ID           1:5 5 , O(") CHARACTER
    NULL if ID = BLANKS
    DNAME 6:25 20 , O(") CHARACTER
    NULL if DNAME = BLANKS
    Record 1: Rejected - Error on table DEPT, column ID.
    ORA-01722: invalid number
    Record 21: Rejected - Error on table DEPT, column ID.
    ORA-01722: invalid number
    Table DEPT:
    0 Rows successfully loaded.
    21 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Bind array size not used in direct path.
    Column array rows : 5000
    Stream buffer bytes: 256000
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 21
    Total logical records rejected: 21
    Total logical records discarded: 0
    Total stream buffers loaded by SQL*Loader main thread: 0
    Total stream buffers loaded by SQL*Loader load thread: 0
    5)Result
    SQL> select * from dept;
    no rows selected
    by
    balamuralikrishnan.s

    Hi everyone!
    The following are the steps to load a excell sheet to oracle table.i tried to be as simple as possible.
    thanks
    Step # 1
    Prapare a data file (excel sheet) that would be uploaded to oracle table.
    "Save As" a excel sheet to ".csv" (comma seperated values) format.
    Then save as to " .dat " file.
    e.g datafile.bat
    1,Category Wise Consumption Summary,Expected Receipts Report
    2,Category Wise Receipts Summary,Forecast Detail Report
    3,Current Stock List Category Wise,Forecast rule listing
    4,Daily Production Report,Freight carrier listing
    5,Daily Transactions Report,Inventory Value Report
    Step # 2
    Prapare a control file that define the data file to be loaded ,columns seperation value,name and type of the table columns to which data is to be loaded.The control file extension should be " .ctl " !
    e.g i want to load the data into tasks table ,from the datafile.dat file and having controlfile.ctl control file.
    SQL> desc tasks;
    Name Null? Type
    TASK_ID NOT NULL NUMBER(14)
    TASK_NAME VARCHAR2(120)
    TASK_CODE VARCHAR2(120)
    : controlfile.ctl
    LOAD DATA
    INFILE 'e:\datafile.dat'
    INTO TABLE tasks
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (TASK_ID INTEGER EXTERNAL,
    TASK_NAME CHAR,
    TASK_CODE CHAR)
    The above is the structure for a control file.
    Step # 3
    the final step is to give the sqlldr command to execute the process.
    sqlldr userid=scott/tiger@abc control=e:\controlfile.ctl log=e:\logfile.log
    Message was edited by:
    user578762

  • How to import a table from another oracle database ?

    Hi all ,
    i could like to use pl/sql to import one table from another oracle database server ?
    is it possible to do this ?
    A server B server
    table: test <------------------------> table : newtest
    the tns profile already configurated . the connection is ready .
    thanks a lot !
    Best Regards,
    Carlos

    if i don't have TEST table on server B whether COPY command will create this table on server B with the same structure ? If you specify CREATE as a clause the table will be created:
    SQL> help copy
    COPY
    COPY copies data from a query to a table in a local or remote
    database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
    COPY {FROM database | TO database | FROM database TO database}
                APPENDCREATE|INSERT|REPLACE} destination_table
                [(column, column, column, ...)] USING query
    where database has the following syntax:
         username[password]@connect_identifier

  • Using AE(htmldb 2.0)  as for reporting tool for other oracle databases.

    Maybe I was mistaken, but when I first saw the HTMLDB demo's I saw this as a slick way to build a browser based reporting tool for the masses for quasi-ad-hoc reporting on some of our larger databases that currently have limited reporting capability, and also as a possible replacement for the many MSAccess applets we have.
    I just got 2.0 installed and working on a 9i database and went through the basic tutorials, but I can't find much info on how to connect to other oracle databases.
    Are my options as follows?:
    create dblinks from the local database that houses htmldb to all the other databases?
    or
    install htmldb schemas on each database I want to access from htmldb?
    or
    I'll keep looking, but if any of you have any pointers or know of a tutorial that explains the best way to do this it would be greatly appreciated!
    tia

    As for question 1, yep, that's what I mean. Example:
    In a schema in the App Express instance, create a user called "APP1_USER", and then
    create view app1_user.people as select * from people@link_user@remotedb
    As for the next question, using the built-in insert/update/delete processes will give you
    ORA-01461: can bind a LONG value only for insert into a LONG column
    among other errors. Apparently version 2.1 will fix this. See Cannot Update VARCHAR column in Remote DB
    We address this problem by creating pl/sql APIs for DML, and then writing our own insert/update processes. Slows us down a little, but even with that, App Express remains a productive choice for us.
    Another weird problem: auto-row fetch (built-in to HTML DB) doesn't work over db links when you have two columns for a primary key. Many ways around this, e.g. create sequence-populated primary key, create a view with single column that concatenates primary key column values (key1|key2)
    Hope this helps!
    -John

  • Error when installing 9.0.1.4.0 patch set for the Oracle Database Server.

    Hi to all.
    Currently, i am trying to install patches for portal server.
    The server OS is Sun Solaris 8.
    We are using Oracle9iAS.
    Now, we are installing 9.0.1.4.0 patch set for the Oracle Database Server.
    We managed to install the patch, but have problem with the Post Install Action.
    We managed to run
    -ALTER SYSTEM ENABLE RESTRICTED SESSION;
    -@rdbms/admin/catpatch.sql
    -ALTER SYSTEM DISABLE RESTRICTED SESSION;
    -CONNECT / AS SYSDBA
    -update obj$ set status=5 where type#=29 and owner#!=0;
    -commit;
    But, when we come to the next command, which is to shutdown, it gives us like
    this..
    SQL> update obj$ set status=5 where type#=29 and owner#!=0;
    1402 rows updated.
    SQL> commit;
    Commit complete.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    We tried to startup the database..it gives us this error..
    SQL> startup
    ORA-01081: cannot start already-running ORACLE - shut it down first
    So, we tried to shutdown again..
    SQL> shutdown immediate
    ORA-01089: immediate shutdown in progress - no operations are permitted
    I been informed that this is maybe a Database problem related. Any ideas?
    Best Wishes,
    Rushdan Md Saad.

    Patchsets could be obtained (only) from http://metalink.oracle.com
    You need to have valid CSI for access.
    P.S: Sorry Werner, I didn't see you post.
    Message was edited by:
    Ivan Kartik

  • Oracle Database 10.2.0.3 on Windows 2003 x64

    We are looking to migrate our 2 Oracle database servers from old Windows Server 2003 machine to our new HP-G5 Windows Server 2003 64-bits. We're using ESX Server with Windows Server 2003 Virtual Machine and our 10.2.0.2 are running fine. Some months ago a consultant warned us from installing the 10.2.0.3 upgrade for some stability bugs on Windows Servers were to be found.
    As the new CPU (Jan 2008) is not available for Windows Server 2003 64-bits for Oracle 10.2.0.2, I would like to upgrade from 10.2.0.2 to 10.2.0.3. I would like to apply these patches to our OAS too. Is anyone had exprience any issue with this kind of configuration ?
    Configuration :
    Database is on a Virtual Machine which we allow 4Gb RAM and a Quad Core.
    Windows Server 2003 Enterprise 64-bits.
    Our Application Servers 10.2.0.2 run on Windows 2003 32-bits.
    We're still using Oracle Forms & Reports 10.1.2.0.2.
    We also use Oracle Discoverer 10g.
    We also use a failover system with EMC Legato.

    Before proceeding with the Virtual Machine, I suggest you to refer to this Metalink Note> Certified Software on Oracle VM
         Doc ID:      Note:464754.1
    This doesn't seem to be a supported platform, so if you ever find an issue after upgrade you may find your production system unsupported by Oracle.
    ~ Madrid

Maybe you are looking for

  • Comedy

    Out of interest of improving the supoprt process, I thought the following HP support exchange - via chat - may be of interest  [Thursday, March 29, 2012 4:15 PM] -- Automatically generated message: Thank you for using HP's Instant Active Chat Support

  • Dynamic File naming in reciever File Adapter

    Hi all, I am using a reciever File adapter and my requirement is to generate 3 different file names based on the value of an element from the Payload.For example.. Say in Payload for the first Occurence of the Data segment which contains Field-1 and

  • Best way to create a conact list from the user profile properties

    We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porl

  • When using Adobe CreatePDF desktop printer where do the files go?

    When using Adobe CreatePDF desktop printer where do the files go?

  • Workshop

    Can I pass array as parameter to the Oracle stored procedure from web logic workshop data control?