Service names
Hi,
if you have experience of primary and standby databases on different servers (machines), can you answer me please :
1-Should primary and standby have the same DB name ?
2-if yes then what should be put in tnsnames.ora of each server to be able to connect to both from each machine ?
Many thanks again.
They actually will be the same database, this is an attribute declared at controlfile level, so they both will be the same.
In order to reference to each instance use the same tnsnames entry (evidently, change the name of the entry) and change the hostname where each instance lives in.
~ Madrid.
Similar Messages
-
Error in Creation of Service Name for Bussiness Service
Hi Friends
I am creating customized Service Program for Bussiness Service which is used for uploading spotbilling data to ccb . The service program CM_Sbm_Upload consists of program com ids CIPBSEGP,CIPMMRDP,CIPTSATP . when i give this to bussiness service i am getting error
Service metainfo missing for 'CM_SBM_UPLOAD'
pls help me to resolve this issue.
Thanks&Regards
sivaramHi,
I've got the same error during my development of a page maintenance service.
Please check if the cm.jar is correctly deployed in your splservice.ear and check also all other deployment directories.
You can find them in the Output window of eclipse after execution of the "Deploy CM" script.
When the cm.jar is deployed well, check if you annotations are correct.
My annotations are looking like this:
* Perform Batch Add.
* @PageMaintenance (secured = false, service = CMIMDIMP,
* body = @DataElement (contents = { @DataField (name = CM_SIMULATION)
* , @DataField (name = XML_REQUEST)}),
* actions = { "change"
* , "read"},
* modules = { "foundation"})
*/To connect a Page Maintenance Service, you must first create a service programm and the "service name" of the service program must match to
the name of the service annotation that you have specified on your Page Maintenance Service, in my case "CMIMDIMP".
There is no validation during the saving of the service programm, the validation happens when you save the Business Service.
BTW. you can use jd-gui.exe to decompile the cm.jar file but you will not see the annotations !
For viewing the ear file I'm using 7-zip. -
Issue while creating connection pool in weblogic using SERVICE NAME
Found two issues while creating connection pool in weblogic using SERVICE NAME
1. While running apps from jdeveloper using xxx-jdbc.xml
weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io exception: The Network Adapter could not establish the connection
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
2. Configuriing the jndi in Weblogic server
weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:SERVICENAME
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
Problem
database url is generated based on SID
eg: jdbc:oracle:thin:@localhost:1521:SID
Solution
(generate seperate url for SERVICE NAME)
jdbc:oracle:thin:@localhost:1521/SERVICENAME
------------------------It is so clear: host not found error for network connection and the other SID servcie name not found means your oracle instance name is not up. check with srvctl status for given servcie name or node, else check CRS_Stat -t if you are using RAC.
-
How do I get a new value for the service name field and update it in Connection Properties?
I am running Windows Vista. I just upgraded to Firefox 4. When I try to log on to the internet, it tells me the proxy server is refusing connections. A diagnostic reported Error 815 and said the remote server is not responding because there is an invalid value for the "Service Name" field. It said to get a new value and update it in Connection Properties. How do I do this?
When you create a new film script, the first page you see is a title page.
The page after this title page is the one where you generally type in your scenes.
It looks like you are facing some issue and not able to delete any text.
Can you please send me this script so that I can have a better look at your issue?
You can save this script to disk by using option 'File -> Save to disk'. This will create a '.stdoc' file on your system.
Just mail this '.stdoc' file to me at 'roverma <at> adobe <dot> com'
Thanks -
EM doesn't allow creation of tnsnames.ora entry with service name orcl11gr2
Dear all,
I'm trying to create a net service name with EM Database Control, via Net Services Administration link. On the service name field, under the 'Edit Net Service Name' screen, I key in orcl11gr2, and it throws the the following error:
Validation Error
Examine and correct the following errors, then retry the operation:
Service Name - Specify a valid service name.
I wonder what is the extra validation that EM is checking. I assume it's checking the number of characters to be 8 characters or less.
Also, because of this extra validation that is in EM, all tnsnames.ora entry that have service name = orcl11gr2, I will not be able to use EM to modify them, as I will get the same above error.
But why does Oracle implements this extra validation, when the same validation is not implemented on other Oracle tools? For instance:
1. dbca allows me to create a database with instance_name greater than 8 characters, and the outcome of initialization parameters will be as follow:
db_name=orcl11gr -- truncated to 8 characters
instance_name=orcl11gr2
db_unique_name=orcl11gr2
service_names=orcl11gr2
2. Oracle Net Manager supports service name of orcl11gr2. The created Net Service Name, I have no problem connecting to the database.
3. Listener support orcl11gr2 service name
I'm using Oracle 11g R2 (11.2.0.1.0) for Microsoft Windows (x64), running on Windows 7.For your reference, here is the bug numbner: 10278345.
-Mughees -
How to get the service name of a webservice using UDDI API
Hi,
Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
Can any one help me to get the service names of the wsdl using UDDI APIs.
Thanks,
AnanthHi sia,
1. Table is APQI
2. field name for session name is GROUPID
regards,
amit m. -
while installing oracle data warehouse builder 10g
i am getting prob such tat
INS0009:Unable to connect to the database with user SYS
java.sql.SQLException:Io exception : could not resolve the connect identifier
OraHome_1\network\ADMIN\SAMPLE\TNSNAMES.ORAhi my problem is in repository assistant IN 2ND STEP
After i enter the
Repository User name sindhu
Repository User Password tiger (As i kept the password of Oracle 10g)
SYSDBA User name SYS
SYSDBA Password tiger (As i kept the password of Oracle 10g)
Host name Local Host
Port number 1521 (default)
Oracle Service name OracleServiceXE
and i am not clicking the SQL* Plus
and clicking on " Next "
then my prob is
INS0009:Unable to connect to the database with the user SYS
java.sql.SQLException : Listener refused the connection with the following error
ORA-12514, TNS: listener dosenot currently know of service requested in connect descriptor
The Connection Descriptor used by the client was
(DESCRIPTION=(ADDRESS=(HOST=LOCALHOST)(PROTOCOL=tcp)(PORT=1521))(CONNECT_DATA=
(SERVICE_NAME=ORACLESERVICEXE)))
hope some one will give me a gud solution
Waiting for ur reply
Sindhu -
Hi,
We have a cluster with 2 nodes. Everything works fine in Node1. When I try to failover TEST1 database to Node-2 it fails with this message.
Generic service 'Analysis Services (TEST1)' could not be brought online (with error '1060') during an attempt to open the service. Possible causes include: the service is either not installed or the specified service name is invalid.
Any help is much appreciated.
ThanksHello,
The error message is pretty straight forward, it's saying either the service isn't installed or it's not installed as the same service on that node. Did you install analysis services on the second node (from the error it seems like it isn't)?
Sean Gallardy | Blog |
Twitter -
How to connect to Oracle 11g using thin driver with service name & SID
Hi Experts,
Wish to know whether there is a common way to connect to Oracle 11g server using SID or service name.
Earlier I used jdbc:oracle:thin:@<<server>:<<port>>:<<SID>> for connecting to individual Oracle server instances.
Now I need to connect to Oracle RAC which provides service names. So I need to use jdbc:oracle:thin:@<<server>:<<port>>/<<service name>>.
This connection string is internally constructed by a program and user inputs <<server>>, <<port>> and <<SID>> or <<Service Name>>. Now this requires two different connection strings based on the input whether its SID or service name.
Is there a common connection string for these two? Based on some articles like this, I understood that we can generically use jdbc:oracle:thin:@<<server>:<<port>>/<<service>>, whether for SID and service.
When I tried this format with SID, I am getting the below error. What I tried is jdbc:oracle:thin:@myoracleserver:1521/ORCL, where ORCL is the SID
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Request your help in solving this. What I want is a single connection string whether its SID or service. Any help is of great value.
Regards
SunilWish to know whether there is a common way to connect to Oracle 11g server using SID or service name.
Earlier I used jdbc:oracle:thin:@<<server>:<<port>>:<<SID>> for connecting to individual Oracle server instances.
Now I need to connect to Oracle RAC which provides service names. So I need to use jdbc:oracle:thin:@<<server>:<<port>>/<<service name>>.
This connection string is internally constructed by a program and user inputs <<server>>, <<port>> and <<SID>> or <<Service Name>>. Now this requires two different connection strings based on the input whether its SID or service name.
Is there a common connection string for these two? Based on some articles like this, I understood that we can generically use jdbc:oracle:thin:@<<server>:<<port>>/<<service>>, whether for SID and service.
When I tried this format with SID, I am getting the below error. What I tried is jdbc:oracle:thin:@myoracleserver:1521/ORCL, where ORCL is the SID
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Request your help in solving this. What I want is a single connection string whether its SID or service. Any help is of great value.
Oracle has an entire book for JDBC: The JDBC Developer Guide.
There are chapters that provide ALL of the connection properties and the rules for creating connection urls.
http://docs.oracle.com/cd/E11882_01/java.112/e16548/urls.htm#BEIDBFDF
See table 8-3 in that doc -
Unregister service name from listener
Hi,
I have a default listener (named LISTENER, port 1521) and a database with SID=ORCL. The database automatically registers with the listener, the output of "lsnrctl status" is:
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
And the value of the service_names parameter is:
SQL> show parameter service_names
NAME TYPE VALUE
service_names string orclNow I'd like to prevent clients to connect to the database using the service name 'ORCL', so I changed the service_names init parameter:
SQL> alter system set service_names=testdb;
System altered.
Then I restarted the listener. The "problem" is that the database registers with the listener also the 'ORCL' service name:
Service "TESTDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
Is it possible to somehow prevent the database from registering the service name ORCL with the listener?
If you're wondering why I'm asking that, it's because this database is a duplicated production database (on a different host), and I'd like to prevent the possibility of mistakenly connecting to the production DB. I'm aware it would be better if I change the database's SID altogether, but currently that's not possible.
Thank you in advance for any answer.
Regards,
JureHi coskan,
Thanks for the answer.
Jut a question at the beginning. Doesn't the SID_LIST_listener_name parameter define which databases the listener listens to (and not the single services the database offers)? As I understand, I can prevent automatic registration of a database into the listener, but not selectively allow only some services the database offers? Maybe I'm completely wrong, so please correct me if it's so :-)
As you suggetsed I tried the following:
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_4)
tnsnames.ora:
LISTENER=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
SQL> show parameter local_listener
NAME TYPE VALUE
local_listener string LISTENERlsnrctl status:
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
Services Summary...
Service "ORCL" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
So, now only the service ORCL is registred, although the init parameter service_names=TESTDB. I can connect using ORCL as the service_name in the connection string, but not using TESTDB.
Regards,
Jure -
TNS: could not resolve service name
ERROR: ORA-12154: TNS: could not resolve service name
does any1 know what this means...and how to overcome this problem
username : scott
passwd: tiger
host string: myora
i have personal oracle8i in d:\oracle
and d2k in d:\d2k
it connects with the SQLPlus
however with d2k when i try to connect it gives the above error
message.
does any 1 know a solution to the problem...Hello,
First of all, If you are using PO8i and D2k as a front end
on single machine,no need of specifying Connect String. You can
connect using scott,tiger. If still it is giving problem,try
this one.
Open TNSNAMES.ORA file from folder NET80/Admin in your PC
using NOTEPAD. Look there entry for myora. If it is there,Check
SID,IPAddress or remove word "World" from there. See E.g
ora816 = -- Your connect string
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 10.0.0.3) -- IP address
(Port = 1521)
(CONNECT_DATA = (SID = ora816) -- Database SID
Hope it will work...
Adi -
How to add a new database service name to 9iDS
Hello,
I installed 9iDS and 9iDB on my laptop which worked fine for few months. I had trouble with 9iDB I/O system so I reinstalled 9iDB with a new SID name. I updated 9iDS by replacing old SID name with new SID name in tnsnames.ora file but it did not work.
Please someone suggest where should I update in 9iDS to access my newly installed database service with new SID so that forms appication builder can connect properly.
Currently it is saying :
ORA-12514: tns listener could not resolve service name given in connect descriptor.
Thanks,
[email protected]Shyam,
could it be that you are still starting the old database tnslistener. Please make sure that you start the listener for your new Db instance.
Frank -
Database Service Name or Global Database Name with Oracle 10G, when Oracle
I have an old installation of Oracle 9i (SID=ORCL) and now have installed Oracle 10G (SID=ORC2). I can get connection to Oracle 10G if i define it as an Oracle 8 compatible identification (ie I access to a SID, and don´t provide a Service Name.
Now I want to install Oracle HTML DB, and succeeded to install the SQL-script that came with the download, but when I install Apache and HTML DB from the Oracle Companion CD I am asked to give the Database Service Name (in the Help it is explained as the Global Database Name).
When i give the Net Service Name I get error messages (incomprehensible).
When I look in Net Manager, the Net Service Name does not have a Service Name, but only points to a SID (ie ORC2).
Where can I find the Database Service Name (or Global Database Name), OR define it if it is not defined??
Thanks for your help,create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.
-
How to know the service name of oracle server
write a query to get the servcie name of oracle from oracle tables
Not really! That's the instance name and not the service name!
This version is correct:
select name, value from v$parameter where name = 'service_names';
NAME VALUE
service_names ACPT.WORLD
1 row selectedBye, Aron -
Getting host, port from the tnsnames.ora with the service name
Hi.
I think that I asked a similar question yesterday. I want to ask if there is a way to get host and port from the tnsnames.org with a given service name. Somebody answered it for getting SID in the sqlplus. so I tried it in a similar way, but it didn't work.
I have a service name, but I don't know how to get host and port. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
I'd appreciated if somebody knows it.caesarkim wrote:
Hi.
I think that I asked a similar question yesterday. I want to ask if there is a way to get host and port from the tnsnames.org with a given service name. Somebody answered it for getting SID in the sqlplus. so I tried it in a similar way, but it didn't work.
I have a service name, but I don't know how to get host and port. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
I'd appreciated if somebody knows it.Oracle RDBMS does not require SQL*Net to operate.
Oracle RDBMS does NOT now or care about content of any tnsnames.ora file.
Realize that each (remote) user can have their own personalized copy of tnsnames.ora
The content of tnsnames not NOT have to reflect any reality.
I could post the content of my tnsnames.ora & it would be useless to everyone reading. -
How to create custom service name in oracle 10g
Hi,
I have installed oracle 10g, it has created default servicename as XE which is having only 4GB memory size. It is not sufficient to import my dmp file. I would like to created my own service name, How can I do it.
Advice thanks for your instruction.Strange...
You'd have to read (and accept) the OTN License Agreement (or, I guess, have a "regular" license), but as stated on the main software downloads index:
"+All software downloads are free, and each comes with a Development License that allows you to use full versions of the products at no charge while developing and prototyping your applications (or for strictly self-educational purposes).+"
http://www.oracle.com/technology/software/index.html
Maybe you are looking for
-
Installing Lion and formatting my Mac (with Snow Leopard)
Hey everybody! I have a MacBook Pro with Snow Leopard. I want to install Lion from the App Store and format my Mac. How should I do it? Thanks!
-
Viewing .3g2 video on IPT
My friend took a video on his phone and emailed it to me in the .3g2 format. It plays on my ipod touch from the Mail program, but it won't play the sound. When I open it on my computer it does have sound. Any ideas? Is there a different format that w
-
Oracle9i Developer release 2 for Mac OS 10.2
Oracle 9i was released in August for Mac OS X. The release notes specify as a requirement Mac OS Server 10.2. Does Oracle 9i run on Mac OS 10.2 (as opposed to Mac OS 10.2 Server)? If not, what is missing in Mac OS 10.2?
-
I just installed Acrobat. Can I delete Adobe Reader?
I just installed Acrobat Standard. Can I delete Adobe Reader?
-
Photoshop elements 4 & scanner quit unexpectedly
I have tried reinstalling both applications, but since today (previously seemed OK) both these applications quit when I try to open them. Please help! Scanner is new CanoScan LiDE 60