Connect to database via another machine

We have a machine that is setup with a VPN connection to a database outside our firewall. Whenever we need to access this database we make a remote desktop connection to this machine.
We would like to be able to connect to the database directly from our workstation using the machine with the VPN connection as a gateway.
Any pointers in the right direction are welcome.
Rene

Dear Rene W.!
Please have a look at the following link. Your subject has already been discussed there:
[http://www.mydatabasesupport.com/forums/oracle-server/369378-not-able-connect-oracle-database-through-vpn.html]
Yours sincerely
Florian W.

Similar Messages

  • Cannot connect to database via TNS

    Hello!
    I installed XE with default settings and have some trouble. I cannot connect to database via TNS. Two symptoms:
    1. I can connect with SQLPLUS system/pwd (locally, without tns name input), but CANNOT connect with SQLPLUS system/pwd@EX (WITH TNS NAME input).
    2. I cannot start Database Home Page.
    How to avoid this problem? Any ideas?
    DETAILS:
    PC configuration: Win2k+SP4, 512Mb, Outpost Firewall (disabled!), No another Oracle products being installed.
    TNSNAMES.ORA file:
    ************* BEGIN TNSNAMES *****************************************
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pz)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ************* END OF TNSNAMES *****************************************
    Listener status:
    ************* BEGIN STATUS *****************************************
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
    ction
    Start Date 22-MAR-2006 17:27:15
    Uptime 0 days 1 hr. 8 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\admin\listener.ora
    Listener Log File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pz)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ************* END OF STATUS *****************************************
    NETSTAT -an results:
    ************* BEGIN NETSTAT *****************************************
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2298 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2455 127.0.0.1:8080 ESTABLISHED
    TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:8080 127.0.0.1:2382 CLOSE_WAIT
    TCP 127.0.0.1:8080 127.0.0.1:2455 ESTABLISHED
    TCP 192.168.200.49:1521 192.168.200.49:2298 ESTABLISHED
    TCP 192.168.200.49:2298 192.168.200.49:1521 ESTABLISHED
    <truncated>
    ************* END OF NETSTAT *****************************************
    I found following error in SQLNET.LOG:
    *************** START LOG *********************************************
    Fatal NI connect error 12570, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 22-MAR-2006 17:28:59
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12570
    TNS-12570: TNS:packet reader failure
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    *************** END OF LOG *******************************************

    I successfully connect with XE client to another Oracle databases from LAN, including 8i and 9i databases.
    But cannot connect from another machines to my XE.

  • Problem in recovering a database on another machine

    Dear All,
    I need your help in restoring and recovering a database on another machine. I don't have access to old machine to get logfile or archivelogs. I have taken full backup using RMAN. I have restored the database using rman sucessfully and trying to recover the database. RMAN have't restored the logfile. Database version is 8.1.7.4, OS is Solaris 8. In recovery, its showing the problem in rbs file. I'm showing all command and error. Just give me any idea that how to recover it sucessfully.
    SVRMGRL>recover database using backup controlfile until cancel;
    ORA-0279: Change 1935345519 generated at 08/19/2005 16:45:50 needed for thread 1
    ORA-0289: suggestion: /u07/oraexp/PROD/arch/arch_1_29958.arc
    ORA-0280: Change 1935345519 for thread 1 is in sequence #29958
    specify log : {RET}...
    cancel
    ORA-01547: warning: Recover succeeded but open resetlogs would get error below
    ORA-01194: file 2 needs more recovery to be consistent
    ORA-01110: data file 2: '/u06/oracle/oradata/PROD/rbs01-PROD.dbf'
    This RBS file size is 7GB. Is it the reason of problem. Even I tried until time, but its also has same error.
    SVRMGRL>recover database using backup controlfile until time '2005-08-16:20:10:00';
    ORA-0279: Change 1935345519 generated at 08/19/2005 16:45:50 needed for thread 1
    ORA-0289: suggestion: /u07/oraexp/PROD/arch/arch_1_29958.arc
    ORA-0280: Change 1935345519 for thread 1 is in sequence #29958
    specify log : {RET}...
    cancel
    ORA-01547: warning: Recover succeeded but open resetlogs would get error below
    ORA-01194: file 2 needs more recovery to be consistent
    ORA-01110: data file 2: '/u06/oracle/oradata/PROD/rbs01-PROD.dbf'
    Why its asking for archive file which generated on 19th, when I'm trying to recover until 16th only.
    Regards
    Rakesh

    Hi.
    What is the size of the redo logs in the database. With a small amount of transactions, there might be redo in this particular archived file from two days back. The timestamp of the archivelogfiles does not indicate that all redo in the file is from this day. It might have changes several days back if no logswitch occured inbetween.
    So, if I were you, I would provide all archivelogs required to get the datafiles consistent.
    As a matter of fact, if archived redo is in the following folder :
    /u07/oraexp/PROD/arch/
    I would use recover database until time and press return for all archived logs svrmgrl comes up with.
    I assume that the database was closed normally prior to taking the offline backup.
    Good luck.
    Rgds
    Kjell Ove

  • Connecting to a database on another machine, please help!!!!!!

    Hi there,
    I am new to oracle and at the minute I am using Oracle 9i. I have set up a database on one machine (PC2) and would like to create an odbc from another machine (PC1) to connect to this database. I have set up a listener for (PC1) the using oracle net manager on PC2. what I want to know is: is there anything else I need to do on the PC2 end???? Also, what needs to be done on the PC1 end??? please help!!!

    If everything is setup and working properly on the Server PC2, you can just test the ODBC from PC1 (assum you already have an Oracle ODBC drive).

  • Connect to mysql in another machine

    Hi, there,
    I have two database. One is oracle in my local machine, another is mysql in another machine. Now, I made a jsp program to control the two database concurrently. When I connect to mysql, I got errors:
    Internal Servlet Error:
    javax.servlet.ServletException: Server configuration denies access to data source
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
    at jspForOracle._0002fjspForOracle_0002fmodiProcess_0002ejspmodiProcess_jsp_1._jspService(_0002fjspForOracle_0002fmodiProcess
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
    at java.lang.Thread.run(Thread.java)
    My local machine is : Redhat7.1, tomcat and oracle
    Mysql machine is : Slackware, tomcat and mysql
    I can ping and ssh the mysql machine. And I grant the mysql table for the permission to access the table. But still the same thing. What the problem?
    Thank you in advance
    peter

    in your error message:
    javax.servlet.ServletException: Server configuration denies access to data source
    The server being referred to is the mysql server. Mysql has uid and password like all db's, but in addition, it has security that is sensitive to the source of the connection. Just because you have a valid uid and password doesn't mean that you will be able to connect from anywhere.
    This data is in the user table of the mysql database, which is included by default in every mysql installation. What you need to do is edit the privileges of the user account that you're using to connect to mysql from the jsp. There is some good documetation on user administration here:
    http://www.mysql.com/documentation/mysql/bychapter/

  • Using mysql database on another machine without having mysql installed

    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..
    The main purpose of doing this is I am creating a Java program which uses a Mysql database and I want to know if I give it to someone else to use it do they have to install Mysql and all the package or can they simply start using it.
    Thanks a lot
    Sassan

    masijade. wrote:
    TuringPest wrote:
    masijade. wrote:
    Sasanpad wrote:
    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..No. Not only would it be in violation of the terms of your license, but a MySQL database is a client/server type setup. No MySQL binaries, no server, your client (jdbc) cannot connect.im just curious because im new to mysql myself, but what do you mean that its a violation of his license?
    do you mean for the commercial version?If he licenses his application under GPL, okay, no problem. Otherwise I read this quote
    Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.
    to mean that you are not allowed to distribute MySQL (or any part of it, unless your application is GPL licensed) with your application, and if he distributes even just the data directory, he is distributing at least a part of MySQL.
    Other's may not see it that way, but do you want to take the chance?The critical element is the word distribute. If he tries to embed MySQL in the application he is giving to his users, he's distributing it. Hence a violation of the license. That does not in any way prevent him from including scripts that when the application is installed goes out and runs the script on the user's installation of MySQL and builds the databases and whatnot his application needs on their MySQL installation.
    Now, for the OP. If all you're keeping up with is urls and such and you don't have hundreds of them. I wouldn't bother with a db at all. a properties file would actually serve your purposes, and xml would suit just fine. Of course you'd have to have access to the file system and such but no licensing issues at all.
    PS.

  • Can not connect the database via query string (C#). The SQL Server Management Studio is showing the full path of a location instead of database name.

    I can not connect to the database via C#. The database is showing full path of the database file instead of the database name. See the pic: a database showing only name 'emart' and the other database showing the full path.
    : Robby

    Hi,
    According to your post, I know that the database name is showing file path of the database rather than the database name in SQL Server Management Studio. You were not able to
    establish a connection to the database using C#.
    As Olaf said, was any error message thrown out when the connection failed? How did you create these databases?
    You can use the following T-SQL to attach the database and see if the issue persists.
    CREATE DATABASE
    databasename
        ON (FILENAME = 'filepath _Data.mdf'),
        (FILENAME = 'filepath_Log.ldf')
    FOR ATTACH;
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Cannot connect to database via JApplet

    Hi,
    I created a Java application which allows me to send information to my mysql database using the jdbc connector via a JFrame. However when i modified the file to be a JApplet the info will not sent and i cannot connect to the database? Any particular reason for this?
    I need it to be a JApplet so i can add it to a browser window.
    Code: ( java )
    private void save ()
    Connection conn = null;
    try
    Statement stmt;
    String userName = "root";
    String password = "PASSWORD";
    String url = "jdbc:mysql://localhost:3306/DATABASE";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName, password);
    System.out.println ("Database connection established");
    //Get a statement object
    stmt = conn.createStatement();
    stmt.executeUpdate( "INSERT INTO TABLE(Info i know to put in) VALUES('Values i know to put in')");
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    finally
    {if (conn != null)
              {try
                   {conn.close ();       
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors*/  }
    As i said above it works fine as a JFrame but not as a JApplet. Any help would be great.
    Thanks G

    Your error reporting is not good. You print a meanningless message or ignore the error.
    Print the stacktrace in the catch blocks.
    Change the code, rerun it and then check the Java Console for output.
    I'm guessing you'll see a security error. Unsigned applets can't access the client file system. If so, sign the applet.

  • Backup external HD USB-connected to TC via Time Machine

    Hi
    I am wondering whether it is possible to backup the content of an external hard drive that is directly connected to Time Capsule via Time Machine in addition to backing up the MBP HD.
    My (relevant) setup:
    MacBook Pro Late 2013 OS-X Mavericks
    TimeCapsule 3TB gigabit ethernet connected to speedport W921V router
    WD MyPassport 2TB external HD USB-connected to Time Capsule
    TimeMachine is happily backing up my MBP drive to the TC, so this is all clear
    Is it possible to configure TimeMachine to also backup the data on the external WD HD to the Time Capsule? If so, where and how do I need to configure this?
    Thx
    Joe

    I would never use TM the way I have suggested you use it.. which is very naughty of me.. so I do not know exactly how TM will react.. it should not be a problem.. It does not care if a source is missing.. just the destination.
    I was trying to give you a solution to your problem.. without you incurring extra expenses. It is the wrong way to do it.. and is why I would never do it.. IMHO TM is great for what it does.. incremental updates of your main drive.. it is LOUSY.. as a way of backing up an external drive.. because it will have huge issues recovering it.
    second question: CCC would then replace time machine as backup SW, correct?
    No, the idea is to run both. TM provides a huge benefit to setting up a new computer for instance.. if the old computer is stolen or lost or damaged.. you can migrate from TM to the new computer (at least you can on a good day. it is not unknown for TM to fail completely). You do this easily as if the old computer was sitting there and you were running files between the two. It is also as stated above a good incremental backup software.
    What it is LOUSY at, is complete disk recovery.. it is even more lousy .. lousier at recovering the disk that is not the main OS.
    Just glance through this forum area or do a search for TM recovery issues.. it is a most difficult software. And of late in Mavericks has become worse than ever. You do not want to have a situation where you believe you have a backup and actually don't. Or your photo library or itunes you expect is backed up and is actually not.. or happens to be corrupted without telling you.
    Step in CCC.. it is able to create backups in situations where TM cannot.. ie from network drives. It can produce a bootable image.. so if your computer disk failed you would be up and running again in 2min flat by plugging in a USB drive with the image. You can even use it to incrementally backup.. but I don't use it that way. Two completely different backup softwares offers you more than double the protection.. because IMHO TM is so complicated half the time you cannot get what you want out of it. CCC is simple.. it makes images and adds files in a completely standard backup way. ie a file can be simply copied out of the disk image and back to the computer without any software backup recovery running. The files are in plain sight.. easy to reach and use. In TM it is hugely complicated.. read how TM works. It is helpful to understand the difference.
    http://pondini.org/TM/Works.html
    Also read pondini's take on using disk images.
    http://pondini.org/TM/Clones.html
    His recommendation is what i also think is the best.. use both.. each has good and bad points.. using two completely different methods gives you a huge improvement in the value of the backups.. and CCC is easy to produce a clone to store offsite adding hugely to your benefit..
    For $40 license makes a lot of sense to me. 

  • Unable to connect to databases via SQLPlus or SQLDeveloper

    Hi,
    Current Setup: Linux Enterprise 5.8 64 bit/ Oracle 11g/ SQL Developer 3.1
    I recently created a new Linux VM from scratch and installed Oracle 11g on it. Was able to successfully create databases via DBCA, how ever am not able to connect to these databases.
    You'll find this very interesting. I recently discovered different scenarios, where it works and does not works.
    Below scenarios are executed in sequence. After Scenario C, I can successfully create connections via SQLPlus and SQLDeveloper
    Scenario A :
    STEP 1) Start Linux Box
    STEP 2) Try to extablish connection via SQLPlus and SQLDeveloper
    SQLPlus Error: ERROR: ORA-12541: TNS:no listener
    SQLDeveloper Error: Network Adaptor could not establish the resource
    Scenario B :
    STEP 1)Run: lsnrctl start
    ==========
    OUTPUT START
    ==========
    [admin@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 10-AUG-2012 23:53:53
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /home/admin/app/admin/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionSystem parameter file is /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.oraLog messages written to /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xmlListening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Listening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))STATUS of the LISTENER------------------------
    Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionStart Date 10-AUG-2012 23:53:56Uptime 0 days 0 hr. 0 min. 2 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.oraListener
    Log File /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xmlListening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))The listener supports no servicesThe command completed successfully[admin@localhost ~]$
    =========
    OUTPUT END
    =========
    STEP 2) Try to extablish connection via SQLPlus and SQLDeveloper
    SQLPlus Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    SQLDeveloper Error: TNS: listner does not currently know of SID given in connect descriptor
    Scenario C :
    STEP 1) Open DBCA > Configure all database one by one database > Go to till STEP 3 of DBCA configuration wizard
    STEP 2) Close DBCA
    STEP 3)Run: lsnrctl status
    ==========
    OUTPUT START
    ==========
    [admin@localhost ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-AUG-2012 12:04:11
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 11-AUG-2012 11:48:51
    Uptime 0 days 0 hr. 15 min. 19 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "agent" has 1 instance(s).
    Instance "agent", status READY, has 1 handler(s) for this service...
    Service "agentXDB" has 1 instance(s).
    Instance "agent", status READY, has 1 handler(s) for this service...
    Service "orcl.localdomain" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "productionXDB" has 1 instance(s).
    Instance "production", status READY, has 1 handler(s) for this service...
    Service "production_core" has 1 instance(s).
    Instance "production", status READY, has 1 handler(s) for this service...
    Service "publishing" has 1 instance(s).
    Instance "publishing", status READY, has 1 handler(s) for this service...
    Service "publishingXDB" has 1 instance(s).
    Instance "publishing", status READY, has 1 handler(s) for this service...
    Service "switchinga" has 1 instance(s).
    Instance "switchinga", status READY, has 1 handler(s) for this service...
    Service "switchingaXDB" has 1 instance(s).
    Instance "switchinga", status READY, has 1 handler(s) for this service...
    Service "switchingb" has 1 instance(s).
    Instance "switchingb", status READY, has 1 handler(s) for this service...
    Service "switchingbXDB" has 1 instance(s).
    Instance "switchingb", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [admin@localhost ~]$
    ==========
    OUTPUT END
    ==========
    What can I do to connect to databases and not start dbca and configure each database on system start?
    Any help would be highly appreciated.
    Cheers,
    Sandeep
    Edited by: Sandeep.R on Aug 11, 2012 12:06 PM

    You need a service to auto start/stop instances. Pls See
    Re: Oracle instance is going to idle when i restart/start the machineRgds,
    Ahmer

  • Restore Oracle XE database to another machine

    I have an oracle XE database on a Windows XP machine, and I want to copy it to a Windows 7 machine.
    On the XP, I performed a backup through the "Backup Database" from the GUI (BACKUP.BAT). The Oracle backup created 3 new folders underneath C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET
    I installed XE on the Windows 7 machine and it seems to work well.
    Then I coped the 3 backup folders onto a jump drive and put them in the corresponding folder structure on the new Windows 7 machine. I ran the Restore from the GUI as an administrator (RESTORE.BAT). The restore failed, and I can't seem to figure out why. I'm not sure what the Sequence Numbers are all about.
    Now I can't get into Apex or Apex_Admin
    Thanks for taking a look at this.
    The contents of the OXE_RESTORE file are as follows:
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:33:11 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows NT Version V6.1
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:6031M/8183M, Ph+PgF:13737M/16364M, VA:1973M/2047M
    Starting with debugging turned off
    connected to target database: xe (not mounted)
    RMAN> set echo on;
    2> restore (spfile from autobackup db_recovery_file_dest='C:\oraclexe\app\oracle\flash_recovery_area\');
    3> startup nomount force;
    4> restore (controlfile from autobackup);
    5> alter database mount;
    6> configure controlfile autobackup off;
    7> restore database;
    8>
    echo set on
    Starting restore at 08-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=37 devtype=DISK
    recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area\
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    channel ORA_DISK_1: SPFILE restore from autobackup complete
    Finished restore at 08-JAN-11
    Oracle instance started
    Total System Global Area 805306368 bytes
    Fixed Size 1289996 bytes
    Variable Size 239075572 bytes
    Database Buffers 562036736 bytes
    Redo Buffers 2904064 bytes
    Starting restore at 08-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Finished restore at 08-JAN-11
    database mounted
    released channel: ORA_DISK_1
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    Starting restore at 08-JAN-11
    Starting implicit crosscheck backup at 08-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=35 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 08-JAN-11
    Starting implicit crosscheck copy at 08-JAN-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 08-JAN-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
    restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP tag=TAG20110107T194642
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:56
    Finished restore at 08-JAN-11
    Recovery Manager complete.
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:34:37 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows NT Version V6.1
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:6021M/8183M, Ph+PgF:13238M/16364M, VA:1973M/2047M
    Starting with debugging turned off
    connected to target database: XE (DBID=2604800077, not open)
    RMAN> set echo on;
    2> recover database;
    3> alter database open resetlogs;
    4>
    echo set on
    Starting recover at 08-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=38 devtype=DISK
    starting media recovery
    archive log thread 1 sequence 375 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
    archive log thread 1 sequence 376 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
    archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC thread=1 sequence=375
    archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC thread=1 sequence=376
    unable to find archive log
    archive log thread=1 sequence=377
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/08/2011 18:34:47
    RMAN-20000: abnormal termination of job step
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 377 lowscn 11715842
    Recovery Manager complete.

    After playing around a little bit I fixed the problem.
    There are a total of four folders in \FLASH_RECOVERY_AREA\XE\ I had only copied three of the four.
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET
    The Windows services keep the files in ONLINELOG open, so I had to shut down the services and then work with the folder. Therefore four folders have to be transported and copied onto the new machine:
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET
    ONLINELOG
    If you run as an administrator "Backup" from the GUI, it executes BACKUP.BAT, a batch file which calls RMAN. Once that's done, copy the four folders to the same location on the target machine and then run as an administrator "Restore" (RESTORE.BAT).
    In another forum someone said to be sure that the "Archive Logs" are copied. It should be interpreted to mean not just the "ARCHIVELOG" folder, but all four folders.
    Edited by: PhilMan2 on Jan 11, 2011 11:28 AM

  • Connecting to database via Dreamweaver

    Hi All
    I am trying to build a site using asp.net and SQL Server via
    Dreamweaver.!!!! To help me on my way I decided to build a tiny
    test site just to establish the connections. However, try as I
    might I can’t make a connection to a database and am now
    rapidly loosing the will to live due to the quite unbelievable time
    I have spent trying to sort this out. Now this post is my last best
    chance.
    I am trying to connect to either of the databases that come
    with the freebee SQL Server package (Is it called express or
    something?). They are pubs and Northwind.
    I am using Dreamweaver 8, XP Professional with the .Net
    framework v2.0 and IIS.
    However, when testing the connection in Dreamweaver I get a
    choice of two different error messages depending on my
    computer’s mood (I don’t change ANYTHING) The first is
    the beautifully succinct and entirely unhelpful “an
    unidentified error has occurred”. The second reads:
    1) There is no testing server running on the server machine
    2) The testing server specified for this site does not map to
    the
    ttp://Localhost/RootFolder/_mmServerScripts/MMHTTPDB.asp URL,
    Verify that the URL Prefix maps to the root of the site.
    After more hours trawling the net for answers, than I care to
    admit to I decided in desperation to try out the Dreamweaver
    tutorial that deals with these things (Café Townsend) to see
    if it offered any clues. However, when attempting to connect to the
    database (tutorial.mdb) I get the same two error messages:
    “an unidentified error has occurred”.
    1) There is no testing server running on the server machine
    2) The testing server specified for this site does not map to
    the
    ttp://Localhost/MySampleApps/_mmServerScripts/MMHTTPDB.asp
    URL, Verify that the URL Prefix maps to the root of the site. Again
    dependent on my computer’s mood.
    I am convinced that I have all the necessary components in
    place and my connection strings are correct (I am aware that the
    path given in the Dreamweaver tutorial for Café Townsend is
    incorrect and have altered the string accordingly).
    I now strongly believe the problem is something to do with
    the MMHTTPDB.asp file in the _mmServerScripts folder but could
    easily be wrong.
    Does anyone know of a problem with Dreamweaver of this nature
    or one that would result in my error message for either an Access
    database or a SQL Server database?
    I know Dreamweaver MX had a problem viewing database tables
    whilst using .net and Adobe created a patch to fix the problem. Has
    Dreamweaver 8 any similar problems?
    I’m sorry this post is a bit long but trust me I could
    have made it three times as long if I included everything I have
    tried to resolve this!
    Any help in the right direction would be appreciated more
    than you can imagine.
    Cheers
    Burnsie

    Sorry for jumping into the thread with a bit of an off topic question, but how do you find out what kind of a db the asp server is using? I've asked my company's web host a number of times for info/help in getting connected using Dreamweaver so I can redesign our site and I never hear back from them. It's a very specialized web hosting server set up for rubber stamp web sites. Looks like most of their customers use the online website design tool that they provide, but it is very limited in what it can do. Very limited.
    They give me ftp access and I've changed what I can on the page, but with out access to the db it's hard to really change the look of the site.
    Here's the link:
    http://www.tacomarubberstamp.com

  • Restore Oracle XE 10g Database to another machine

    Hello,
    I have an oracle XE database on a Windows XP machine, and I want to copy it to a Windows 7 machine.
    On the XP, I performed a backup through the "Backup Database" from the GUI. The Oracle backup created 3 new folders underneath C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET
    I installed XE on the Windows 7 machine and it seems to work well.
    Then I coped the 3 backup folders onto a jump drive and put them in the corresponding folder structure on the new Windows 7 machine. I ran the Restore from the GUI as an administrator. The restore failed, and I can't seem to figure out why. I'm not sure what the Sequence Numbers are all about.
    Now I can't get into Apex or Apex_Admin
    Thanks for taking a look at this.
    The contents of the OXE_RESTORE file are as follows:
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:33:11 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows NT Version V6.1
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:6031M/8183M, Ph+PgF:13737M/16364M, VA:1973M/2047M
    Starting with debugging turned off
    connected to target database: xe (not mounted)
    RMAN> set echo on;
    2> restore (spfile from autobackup db_recovery_file_dest='C:\oraclexe\app\oracle\flash_recovery_area\');
    3> startup nomount force;
    4> restore (controlfile from autobackup);
    5> alter database mount;
    6> configure controlfile autobackup off;
    7> restore database;
    8>
    echo set on
    Starting restore at 08-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=37 devtype=DISK
    recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area\
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    channel ORA_DISK_1: SPFILE restore from autobackup complete
    Finished restore at 08-JAN-11
    Oracle instance started
    Total System Global Area 805306368 bytes
    Fixed Size 1289996 bytes
    Variable Size 239075572 bytes
    Database Buffers 562036736 bytes
    Redo Buffers 2904064 bytes
    Starting restore at 08-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Finished restore at 08-JAN-11
    database mounted
    released channel: ORA_DISK_1
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    Starting restore at 08-JAN-11
    Starting implicit crosscheck backup at 08-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=35 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 08-JAN-11
    Starting implicit crosscheck copy at 08-JAN-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 08-JAN-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
    restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP tag=TAG20110107T194642
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:56
    Finished restore at 08-JAN-11
    Recovery Manager complete.
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:34:37 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows NT Version V6.1
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:6021M/8183M, Ph+PgF:13238M/16364M, VA:1973M/2047M
    Starting with debugging turned off
    connected to target database: XE (DBID=2604800077, not open)
    RMAN> set echo on;
    2> recover database;
    3> alter database open resetlogs;
    4>
    echo set on
    Starting recover at 08-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=38 devtype=DISK
    starting media recovery
    archive log thread 1 sequence 375 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
    archive log thread 1 sequence 376 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
    archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC thread=1 sequence=375
    archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC thread=1 sequence=376
    unable to find archive log
    archive log thread=1 sequence=377
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/08/2011 18:34:47
    RMAN-20000: abnormal termination of job step
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 377 lowscn 11715842
    Recovery Manager complete.
    Edited by: PhilMan2 on Jan 8, 2011 7:24 PM

    Hi Hemant,
    Thanks for responding. I still need some help.
    I copied the Restore.bat file, and added the line SET UNTIL RESTORE POINT right after the SET LOCAL line.
    Then I deleted and copied the three folders (ARCHIVELOG, AUTOBACKUP, BACKUPSET) that were produced from the Backup on the original machine to the corresponding location on the new machine. I ran the modified BAT file as an administrator and got similar results.
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 9 07:56:16 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows NT Version V6.1
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5822M/8183M, Ph+PgF:13225M/16364M, VA:1973M/2047M
    Starting with debugging turned off
    connected to target database: xe (not mounted)
    RMAN> set echo on;
    2> restore (spfile from autobackup db_recovery_file_dest='C:\oraclexe\app\oracle\flash_recovery_area\');
    3> startup nomount force;
    4> restore (controlfile from autobackup);
    5> alter database mount;
    6> configure controlfile autobackup off;
    7> restore database;
    8>
    echo set on
    Starting restore at 09-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=37 devtype=DISK
    recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area\
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    channel ORA_DISK_1: SPFILE restore from autobackup complete
    Finished restore at 09-JAN-11
    Oracle instance started
    Total System Global Area 805306368 bytes
    Fixed Size 1289996 bytes
    Variable Size 239075572 bytes
    Database Buffers 562036736 bytes
    Redo Buffers 2904064 bytes
    Starting restore at 09-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Finished restore at 09-JAN-11
    database mounted
    released channel: ORA_DISK_1
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    Starting restore at 09-JAN-11
    Starting implicit crosscheck backup at 09-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=35 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 09-JAN-11
    Starting implicit crosscheck copy at 09-JAN-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 09-JAN-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
    File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
    restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP tag=TAG20110107T194642
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:16
    Finished restore at 09-JAN-11
    Recovery Manager complete.
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 9 07:58:02 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows NT Version V6.1
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5801M/8183M, Ph+PgF:12720M/16364M, VA:1973M/2047M
    Starting with debugging turned off
    connected to target database: XE (DBID=2604800077, not open)
    RMAN> set echo on;
    2> recover database;
    3> alter database open resetlogs;
    4>
    echo set on
    Starting recover at 09-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=38 devtype=DISK
    starting media recovery
    archive log thread 1 sequence 375 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
    archive log thread 1 sequence 376 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
    archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC thread=1 sequence=375
    archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC thread=1 sequence=376
    unable to find archive log
    archive log thread=1 sequence=377
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/09/2011 07:58:11
    RMAN-20000: abnormal termination of job step
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 377 lowscn 11715842
    Recovery Manager complete.

  • Connection to database via Oracle Sql Developer

    I want to establish a local connection to my database Oracle Database 10g Express Edition via Sql Developer
    I put :
    - hostname: localhost
    - Port: 1521
    - SID: the name of my PC
    But it tolds me:
    The network adapter could not establish the connection
    Can you help me please?

    Where sould i type this command?lsnrctl is an OS command, you have to execute it at OS prompt.

  • Urgent: How to restore a database to another machine without backup files

    I am a beginner with Oracle and need to solve a tough problem.
    I have all the files of a database on a hard disk without previously backed up. I don't have the old machine right now, I only have the hard disk from the old machine, and the new machine. There is an Oracle 9i database on the harddisk, and we need make the database work.
    I've already installed the Oracle 9i on the computer(Win XP), put the files to the right folder, modified the listener.ora and tnsnames.ora, then I added the database from:
    OEM -> Navigator -> Add database to tree -> Add selected databases from your local tnsnames.ora file ...
    When I tried to connect to the database, I got the error:
    ORA-12500: TNS: listener failed to start a dedicated server process.
    The setting in my tnsnames.ora and listener.ora are all correct. tnsping <tnsname> is OK. Besides, the default database installed by the ORACLE software works fine.
    Both the old machine and the new machine are Window XP. Both the old database and the new database are ORACLE 9i.
    Any idea on how to mannually make it work? Thank you inadvance!
    Lihua

    Lihua,
    Since you didn't create the DB with DBCA, you will need to manually create a SID.
    From a command window type
    ORADIM -NEW -SID mydb
    Replace mydb with the DBNAME specified in your init.ora and listener.ora files.
    This will create and start the service. The service should now be available as a windows service in the computer management area...
    From a COMMAND window type
    set oracle_sid=mydb
    sqlplus /nolog
    connect / as sysdba
    startup
    If you have all the files in the correct location the DB should start. You should then be able to connect with the database manager. Good Luck.
    --Paul

Maybe you are looking for