service-name

How can I change the SID of an Oracle XE instance

笑着哭i 提交于 2021-02-04 12:12:02
问题 I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database. When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do. 回答1: The asktom article has the answer, but the formatting and verbosity makes it hard to follow, so here's a summary: [XE_HOME] means where Oracle XE is installed. Normally this is C:\oraclexe\app\oracle\product\10.2.0\server . Make

How can I change the SID of an Oracle XE instance

半世苍凉 提交于 2021-02-04 12:11:49
问题 I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database. When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do. 回答1: The asktom article has the answer, but the formatting and verbosity makes it hard to follow, so here's a summary: [XE_HOME] means where Oracle XE is installed. Normally this is C:\oraclexe\app\oracle\product\10.2.0\server . Make

Java JDBC - How to connect to Oracle using Service Name instead of SID

坚强是说给别人听的谎言 提交于 2019-11-25 23:36:27
问题 I have a Java application that uses JDBC (via JPA) that was connecting to a development database using hostname, port and Oracle SID, like this: jdbc:oracle:thin:@oracle.hostserver1.mydomain.ca:1521:XYZ XYZ was the Oracle SID. Now I need to connect to a different Oracle database that does not use a SID, but uses an Oracle \"Service Name\" instead. I tried this but it doesn\'t work: jdbc:oracle:thin:@oracle.hostserver2.mydomain.ca:1522:ABCD ABCD is the Service Name of the other database. What