How to connect to remote database
Hi experts,
i want to connect with another database in our network what are all the steps i need to follow? i just confused with listener.ora and tnsnames.ora. waiting for your ideas.....
The database listener is the process that is configured via the listener.ora file. The administrator of the other database should have configured a listener for that database.
On the client machine, you'll need to configure a tnsnames.ora entry unless you are using Oracle Names, Oracle Internet Directory, EZConnect syntax, or something like JDBC to connect. The administrator of the other database should be able to give you a tnsnames entry for connecting to his (or her) database.
Justin
Similar Messages
-
hello
i am souvik kundu . i am using tomcat web server that is in india . Through this web server i want to connect oracle data base that is in philipins(remote) .pls tell me the code or procedure how i connect to remote data base ?????????Dear Souvik,
The physical location of the database is not of big concern while working with the java programs.
U might be aware how to connect to remote database from ur localmachine if u have databaseclient(Oracle client for example) installed in ur system.
U need to have a tnsnames.ora file to resolve the database.
An entry in the tnsnames.ora file will lokk like the following
name=( description = (address = ( host =ipnumber ) ( protocol = tcp ) (port = some port number ))(connect_data = (sid=sidname)))
Here the sidname is very important
If u have this description in the tnsnames file , then u can connect to any oracle machine in the world with the valid userid and password.
al this is another part of the story , but now our concern is to make ur tomcat application capable of conencting to remote database
there are two ways that i suggest u
1) Explicitly make connections to the remote database from withing ur java program as follows
String userId="scott";
String passWord = "tiger";
String url = "jdbc:oracle:thin:@ipnumber:portnumber:sidname";
String driver = "oracle.judbc.OracleDriver";
//This is very important
try{
Class.forName( driver );
Connection con = DriverManager.getConnection ( url,userId,passWord );
}catch(){
Here the difference is that if ur using a local database u need not to give the ip number and portnumber combination
Note:check whether ur network can contact to the destination by running the command at command prompt
> tnsping ipnumber
If tns ping doesnt work then u cant contact the remote database.
2) Use tomcat admin console screen to set up a datasource and give required information as I provided above,
Then u can obtain the connection frm the datasource.
Regards
mahi -
Connection to remote database failed
I have configured the cman.ora file and changed the connection
string for the java applet, but I encountered the error
"The NT Adapter could not establish the connection" when I tried
to connect to remote database from JDev2.0(beta).
Any ideas of what are the possible causes for this?
At the cman.ora file, the setting are:
cman = (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=<web_host_ip>)(PORT=1610))
(ADDRESS=(PROTOCOL=tcp)(HOST=<db_host_ip>)(PORT=1521))
cman_profile = (parameter_list=
(MAXIMUM_RELAYS=1024)
(LOG_LEVEL=1)
(TRACING=yes)
(RELAY_STATISTICS=yes)
(SHOW_TNS_INFO=yes)
(USE_ASYNC_CALL=yes)
(AUTHENTICATION_LEVEL=0)
At the java applet the connection statement are:
DriverManager.registerDriver (new
oracle.jdbc.driver.OracleDriver());
Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:" +
"@(description=(address_list=" +
"(address=(protocol=tcp)(host=<web_host_ip>)(port=1610))" +
"(address=(protocol=tcp)(host=<db_host_ip>)(port=1521)))" +
"(source_route=yes)" +
"(connect_data=(sid=<orasid>)))", "<user>", "<id>");
The error at the dos prompt running from JDev2 are:
java.sql.SQLException: The NT Adapter could not establish the
connection
at oracle.jdbc.dbaccess.DBError.check_error(Compiled
Code)
at oracle.jdbc.driver.OracleConnection.<init>(Compiled
Code)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at test.Applet1.jbInit(Compiled Code)
at test.Applet1.init(Compiled Code)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Thanks,
Eye Gee
nullI am able to connect to the remote database using SQL*plus but
does it means it is using CMAN connection?
How do I test the CMAN connection from SQL*plus? Any example for
me to follow?
Thanks,
Eye Gee
mark tomlinson (guest) wrote:
: Have you tried using the CMAN connection from something like
: SQL*plus to verify that it is configured correctly? Everything
: looks correct, so it might be hiding an actual NET error
: underneath.
null -
I want to connect to remote databases which can be specified by URL
Hi,
i'm tinu
I want to connect to remote databases which can be specified by URL
the database is ORACLE 9i
pls help me, how to connect to it
i have the ip address,port address,sid,username and password of the database
is there any difference in the actual code of database connection
plss helpHi,
There is a particular example with MS SQL 2000 in thread http://forum.java.sun.com/thread.jspa?threadID=608314
In the given example you just need to change the database URL and the JDBC driver. Just examine the code a little bit.
Also you may wish to visit the SUN's JDBC tutorial on http://java.sun.com/docs/books/tutorial/jdbc/
Ferad Zyulkyarov -
How to connect to Oracle database from webdynprojava application
Hi
How to connect to Oracle database from webdynprojava application. where can we provide the code to connect to database.?
Thank You.Hi,
You need to create Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
However you need to configure the connection and create JNDI using visual administrator before writing the code.
You can also consider writing Session EJB with oracle and using them in WD.
http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
Srini -
How to Connect to Remote ECC 5.0 System from EP ?
Hi,
We are using EP6.0 - located in India, and our client ECC5.0 System is in US. Can anyone please let me know the steps how to connect to Remote ECC 5.0 System?.
Thanks in advance.
Krishna Kumar JHi,
Finally we have successfully got connected the ECC 5.0 system which is located in the remote network thru VPN Connection using the same connecting procedure for the local R/3 System.
Thanks & Regards
Krishna Kumar -
How to connect to oracle10g Database using oracle11g Enterprise Manager.
Hi,
please suggest me how to connect to oracle10g Database using oracle11g Enterprise Manager.
i did setting in tnsnames.ora file of oracle11g database but when i am trying to connect sys@testvsr and password
using oracle11g Enterprise manager its not connecting but from command prompt its connecting.
its not acccepting hostname its simply telling invalid username and password ,if i remove and try to connect its connecting.
so please suggest its very urgent my manager is nagging.
Regards,
Srinu.you cant attach a database 10g instance with
Enterprise manager of 11g as enterprise manager is
meant for a single database only .. your problem cant be solved
enterprise manager it can be solved by using GRID CONTROL
For more details visit oracle documentation..
Hope This helps..
BI TC -
Connecting to remote database (idle) with Password File Authentication
Hi all,
I was wondering if it's possible to connect to a remote database that is shut down (idle instance) as sys user with sysdba privileges? In the book Oracle - All in One on page 210 in the section - Operating System and Password File Authentication it says:
Connection with operating system or password file authentication is always possible, no matter what state the instance and database are in, and is necessary to issue STARTUP or SHUTDOWN commands.
Above indicates that it's possible but I'm unable to do so.
I managed to connect to remote database that was in nomount mode (see below for details).
When I first tried to connect to a remote database (idle instance) using password file authentication it was giving following error:
sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:59:28 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
After starting the database to nomount mode I was getting following error:
sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:48:36 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12528: TNS:listener: all appropriate instances are blocking new connections
Enter user-name:
So I added the clause (UR=A) to my listener.ora file and after that it work and I was able to connect:
sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 14:04:49 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
I have all necessairly entries in tnsnames.ora on my local host.
Also I have no problems when connecting as sys user with sysdba when the DB is open but can't get it work on an idle instance.
I know that I can use operating system authentication but want to know if there is a mistake in the book or I'm doing something wrong.
Regards,
Dawid
Edited by: 978239 on 2012-12-21 06:24978239 wrote:
Hi all,
I was wondering if it's possible to connect to a remote database that is shut down (idle instance) as sys user with sysdba privileges? In the book Oracle - All in One on page 210 in the section - Operating System and Password File Authentication it says:
Connection with operating system or password file authentication is always possible, no matter what state the instance and database are in, and is necessary to issue STARTUP or SHUTDOWN commands.
Above indicates that it's possible but I'm unable to do so.
I managed to connect to remote database that was in nomount mode (see below for details).
When I first tried to connect to a remote database (idle instance) using password file authentication it was giving following error:
sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:59:28 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptorSince the database is down, the only way the listener is going to know of it is if you create a static registration by adding an entry for the db in the SID_LIST section of listener.ora
>
Enter user-name:
After starting the database to nomount mode I was getting following error:
sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:48:36 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12528: TNS:listener: all appropriate instances are blocking new connections
Enter user-name:
So I added the clause (UR=A) to my listener.ora file and after that it work and I was able to connect:
sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 14:04:49 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
I have all necessairly entries in tnsnames.ora on my local host.
Also I have no problems when connecting as sys user with sysdba when the DB is open but can't get it work on an idle instance.
I know that I can use operating system authentication but want to know if there is a mistake in the book or I'm doing something wrong.
Regards,
Dawid
Edited by: 978239 on 2012-12-21 06:24 -
Failed to connect to remote database DMWEB_SITE1. Error is ORA-12533
hello Gurus,
I don't get what's hapenning with my Standby database
I've follwoed the procedure as usual to recreate my standby as usually (works fine) exception this time
I've created a separat listener so tha I've configured a local_listener
in Site 1 Ok
Site 2 I get error message below in my dataguard trace File ...
NSV0: Failed to connect to remote database DMWEB_SITE1. Error is ORA-12533
DG 2010-01-08-15:56:32 0 2 0 NSV0: Failed to send message to site DMWEB_SITE1. Error code is ORA-12533.
DG 2010-01-08-15:56:32 0 2 707758231 DMON: DMWEB_SITE2 unable to contact primary for DRC version check
When I try to enable the dataguatrd configuration it succed but the Site2 remains Disable.
My Local Listener :
LISTENER_DMWEB.world =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp03.int.imd.ch)(PORT=1523))
(ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp13.int.imd.ch)(PORT=1523))
Txs for any Help
Rgds
Carlosyes i've check Both Adress
The tnsnames in Both Sites is :
DMWEB_SITE1.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp03.int.imd.ch)(PORT = 1523))
(CONNECT_DATA = (SERVICE_NAME = DMWEB_SIET1)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED))
DMWEB_SITE2.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13.int.imd.ch)(PORT = 1523))
(CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE2)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED))
*********** FROM SITE 1
[oracle@srvldbp03 admin]$ tnsping DMWEB_SITE1.world
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp03.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SIET1)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
OK (0 msec)
[oracle@srvldbp03 admin]$ tnsping DMWEB_SITE2.world
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE2)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
OK (10 msec)
[oracle@srvldbp03 admin]$
******** FROM SITE 2
[oracle@srvldbp13 bdump]$ tnsping DMWEB_SITE1
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp03.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE1)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
OK (0 msec)
[oracle@srvldbp13 bdump]$ tnsping DMWEB_SITE2
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE2)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
OK (0 msec)
[oracle@srvldbp13 bdump]$
In Both Database the Parameter LOCAL_LISTENER=LISTENER_DMWEB
When I check Dataguard Configuration
SITE 1 is OK
SITE 2 is disabled and the trace shows this Ora:12533 Error -
NSV0: Failed to connect to remote database orcl. Error is ORA-12514
sGetting error on data guard broker configuration. redologs shiping properly, withot any problems.
Database: 11gR2 , Linux 64-bit
[root@redhat ~]# su - oracle
[oracle@redhat ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 18 17:39:07 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL> connect sys/oracle@primarydb as sysdba
Connected.
SQL> connect sys/oracle@physicaldb as sysdba
Connected.
SQL>
*/etc/hosts file contents on all nodes*
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.232 redhat redhat
192.168.1.234 rac1 rac1
primary database (drcorcl.log)
2010-06-18 17:41:39.972 02010001 1362743835 DMON: CTL_GET_STATUS forwarded to site physicaldb for processing
2010-06-18 17:41:41.044 NSV1: Site physicaldb returned ORA-16664.
2010-06-18 17:41:41.045 02010001 1362743821 DMON: Database physicaldb returned ORA-16664
2010-06-18 17:41:41.045 02010001 1362743821 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743821
2010-06-18 17:41:41.045 02010001 1362743821 DMON: CTL_GET_STATUS operation completed
2010-06-18 17:41:41.050 01000000 1362743836 DMON: MON_PROPERTY operation completed
2010-06-18 17:41:41.054 01010001 1362743837 DMON: MON_PROPERTY operation completed
2010-06-18 17:41:41.058 01010001 1362743838 DMON: MON_PROPERTY operation completed
2010-06-18 17:41:41.062 01010001 1362743839 DMON: CTL_GET_STATUS operation completed
2010-06-18 17:41:56.045 NSV1: Site physicaldb returned ORA-16664.
2010-06-18 17:41:56.045 02010001 1362743835 DMON: Database physicaldb returned ORA-16664
2010-06-18 17:41:56.045 02010001 1362743835 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743835
2010-06-18 17:41:56.046 02010001 1362743835 DMON: CTL_GET_STATUS operation completed
physical standby database (drcorcl.log)
2010-06-17 00:41:30.410 drcx: could not find task req_id=1.1.1362743821 for PROBE.
2010-06-17 00:41:45.411 drcx: could not find task req_id=1.1.1362743835 for PROBE.
2010-06-17 00:42:00.546 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
2010-06-17 00:42:00.547 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
2010-06-17 00:42:00.547 DMON: Database orcl returned ORA-12514
2010-06-17 00:42:00.547 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743840
2010-06-17 00:42:15.414 drcx: could not find task req_id=1.1.1362743840 for PROBE.
2010-06-17 00:43:15.548 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
2010-06-17 00:43:15.549 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
2010-06-17 00:43:15.549 DMON: Database orcl returned ORA-12514
2010-06-17 00:43:15.549 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743841
Standby Lintener file contents
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1)(PORT = 1521))
ADR_BASE_LISTENER = /oradisk/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DNAME = physicaldb)
(ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
(SID_NAME = orcl)
(SID_DESC =
(GLOBAL_DNAME = physicaldb_DGMGRL)
(ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
(SID_NAME = ORCL)
Primary database Listener contents
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521))
ADR_BASE_LISTENER = /oradisk/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DNAME = orcl)
(ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
(SID_NAME = orcl)
(SID_DESC =
(GLOBAL_DNAME = orcl_DGMGRL)
(ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
(SID_NAME = orcl)
TNSNAMES.ora on all nodes
PRIMARYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
(CONNECT_DATA =(SID = orcl))
LISTENER_PHYSICALDB =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521))
PHYSICALDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521)) )
(CONNECT_DATA =(SID = orcl))
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
(CONNECT_DATA =(SERVER = DEDICATED)(SID = orcl) )
)Don't use the old syntax 'SID=...' in tnsnames.ora, use 'SERVICE_NAME=...' . Make sure 'SERVICE_NAME' is exactly the same returned by 'lsnrctl status' on both nodes.
Primary and standby cannot talk to each other currently through the listener:
ORA-16664: unable to receive the result from a database
Cause: During execution of a command, a database in the Data Guard broker
configuration failed to return a result.
Action: Check Data Guard broker logs for the details of the failure. Fix any
possible network problems and try the command again.
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action: - Wait a moment and try to connect a second time.
- Check which services are currently known by the listener by executing: lsnrctl services <listener name>
- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
- Check for an event in the listener.log file.
Werner -
How do connect to Historical Databases?
Hi,
please explain me what is Historical databases?
Can u tell me how to connect to Historical databases? can we download these Database servers from net?
- senthilHi Senthil,
You can try for RTXHDB (RTX Historical Database).
RTX provide secured relational databases for LAN and WAN network.
Often the use of relational database, or transaction-oriented technology, for off process historical LAN/WAN database applications, and doing unconventional operations on data.
As an example, It is in this area of off process historical data warehousing and retrieval that the RTXHDB (RTX Historical Database) system excels. RTXHDB processes and stores a massive flow of data for LAN/WAN database applications, which then can be retrieved with a great deal of speed and quickly turned into useful information for the PC user.
You can check following links for more information.
www.expertune.com/articles/isa2004perfmonhda.pdf
http://www.rtx.com/hdbcncpt.htm
Best Regards
Ramshanker -
How connect to remote database
Hello,
how can i connet to remote database on itvimsapp server????
now i can connet on my default database
http://tlvrg4:1158/em
but if i try
http://itvimsapp:(port)/em
don't show anything why? How can i connet to remote server??
Thank'sIn the itvimsapp server execute the command
emctl status dbconsole
and see the name server and port, for example:
===================================
[oracle@bddesa oracle]$ emctl status dbconsole
TZ set to America/Guayaquil
Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
http://bddesa:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
===================================
If the server is running you can connect with the sentence
http://bddesa:5500/em or http://192.168.1.186:5500/em
I hope this help
Regards,
Wilson -
How to find whether remote database is up or not (connected via dblink)
Hi,
I am using dblink to connect Biz database from Dev database.(Biz, Dev - database names)
Running dbms job using the dblink from the Dev database to update data on Biz database...
Problem is dbms job should run if and only if the Biz database is up for which i created the dblink...
1) How to make sure or implement the check to find whether the Biz is database is up or not in Pl/sql or sql...
2) How to reschedule the dbms jobs once the database is up
pls suggest me how to find whether the database is up or not b4 running the dbms job?
Using- Oracle 10gThe only way to know whether the remote database is up (and whether the network between the two databases is up and whether the remote database's listener is up and whether the password configured in the database link is correct and whether the local TNS alias is correct, etc) would be to actually run a query against the remote database over the database link. In other words, the way to figure out whether the link is up is to let the job run and catch & handle exceptions when there are problems.
By default, a job scheduled via DBMS_JOB will automatically reschedule itself if there is an unhandled exception by geometrically backing off (it waits 1 minute after the first failure, 2 minutes after the second, 4, 8, 16, 32 minutes, etc until it's marked as broken after 16 failures). You could, of course, catch appropriate exceptions and handle them in a reasonable fashion and manually reschedule jobs at intervals that make more sense for your particular job.
Justin -
How can i connect to remote database from netbeans
Hi,
I have got MySQL database server installed and running on a different machine. Is there any way to connect and browse database remotely using netbeans 5.5?
I have added connector/driver for that database. i can connect and browse the database with host: "localhost" and port number. But when i specified the ip address of that machine, it gives me error.
Can anyone help please.
cheers.well, its not working in App server either.
In App server admin console, on that connection pool if i define servername as "localhost", it works fine. If i change it to the remote machine's ip address, then it doesn't work.
Any idea will be appreciated.
cheers. -
How Forms 6i could connect to remote database 9i
AOA,
Our company has different sites located in different cities. In the main office we have developed many modules using Oracle 9i and Developer 6i and our data is highly confidential.
In all remote sites our modules are running by standalone. Now we want to connect our remote sites with our main Database.
What will be the options available to make highly secured connection between our sites and main office.
In our city different ISPs are available who can provide dedicated IP access, DSL and VPN.
If anybody has any experience please let us know.
Regards
Aimed Bill
System Analyst
Pakistan
Message was edited by:
AB ShahIn the itvimsapp server execute the command
emctl status dbconsole
and see the name server and port, for example:
===================================
[oracle@bddesa oracle]$ emctl status dbconsole
TZ set to America/Guayaquil
Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
http://bddesa:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
===================================
If the server is running you can connect with the sentence
http://bddesa:5500/em or http://192.168.1.186:5500/em
I hope this help
Regards,
Wilson
Maybe you are looking for
-
Remote (again) on Mega 180
Hi, Got my Mega 180 together and it seems to work OK, BUT the remote doesn't work. Does it require the TV card since the motherboard manual doesn't seem to indicate a connectyor for IR in. I don't have the MSI TV card in my configuration. Does anyone
-
How to delete GP process instance?
Good day! Am I able to delete an GP process instance? I can stop it by using IGPRuntimeManager.stopProcess, but I need to completly remove it - like it's possible from the GP Administartion page... Are there any undocument features? May be reflection
-
I'm running Firefox 3.6.13 and Outlook 2010 in Win 7 Home Premium on a Samsung netbook. When a web-site says 'contact us' and opens an e-mail form in Outlook it selects my Orange address and POP3 connection - which doesn't work! I'd like it to select
-
Hello All, I have a bunch of transports around 50 in my system. How do I find out if any of the objects withing all the 50 are locked or not? I want to avoid the manual process of going into SE03 and checking each transport individually. Any other al
-
Stuck while installing OAS 10.1.2 on RHEL 5
OVERVIEW To relocate from and old server to a new server OLD: - OAS 10g (10.1.2.3) - RHEL4 - Oracle Database (10.2.0.4) NEW: - OAS 10g (10.1.2.3) - RHEL5 - Oracle Database (10.2.0.5) Completed following tasks: <li> Install 10g Database Sofware in "or