Connect 11g server from client
Hi,
i have 11g daatabase and 11 g client. can u please help me to connect 11g server from client
pls help with steps
thanks
Chinu wrote:
Hi,
i have 11g daatabase and 11 g client. can u please help me to connect 11g server from client
pls help with steps
thankssqlplus
/ as sysdba
Handle: Chinu
Status Level: Newbie
Registered: Sep 19, 2009
Total Posts: 323
Total Questions: 123 (102 unresolved)
why so MANY unresolved questions?
Similar Messages
-
Not able to connect RAC database from client
Hi there
Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client. Error is as under :
C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter user-name:
myrac =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = racdb.testdb.com.bd)
Please give me your valuable suggestion to overcome the issue.
Regards
Jeweluser13134974 wrote:
ORA-12545: Connect failed because target host or object does not exist
This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead. -
Can we stop shared server from client m/c
Hi all,
Can we stop Oracle Shared and Dedicated server from Client Machine if i am connecting through SYSDBA.
Thanks
Vipin> Can we stop Oracle Shared and Dedicated server from Client Machine if i am
connecting through SYSDBA.
Yes. No.
Yes, you can stop shared server. Simply decrease the shared server pool to zero. (see below for details)
No, you cannot stop a dedicated server as "The Thing" that creates dedicated server connections is the Listener. So you will need to stop that.
# stop shared server:
SQL> show parameter shared_servers
NAME TYPE VALUE
max_shared_servers integer 20
shared_servers integer 10
SQL> alter system set shared_servers=0 scope=memory;
System altered.
# now attempt a shared server connection
/home/billy> sqlplus scott/tiger"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=dev)(PORT=1521))) (CONNECT_DATA = (SID=dev) (SERVER=shared)))"
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 5 12:21:06 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12519: TNS:no appropriate service handler found
# start the shared server (in the SYSDBA session)
SQL> alter system set shared_servers=10 scope=memory;
System altered.
# now attempt a shared server connection
/home/billy> sqlplus scott/tiger@"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=dev)(PORT=1521))) (CONNECT_DATA = (SID=dev) (SERVER=shared)))"
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 5 12:21:17 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> -
Connection between server and client using thread
hi
i am new to java..i hav done a program to connect a server and client...but i hav not used threads in it..
so please tel me how to use threads and connect server and client..i tried it out not getin...i am havin thread exception...my program is as shown below
SERVER PRG:
import java.io.*;
import java.net.*;
public class Server{
String clientsen;
String serversen;
public void go(){
try{
ServerSocket serverSock=new ServerSocket(6789);
while(true) {
Socket sock=serverSock.accept();
BufferedReader inFromClient=new BufferedReader(new InputStreamReader(sock.getInputStream()));
BufferedReader inFromuser=new BufferedReader(new InputStreamReader(System.in));
DataOutputStream outToClient=new DataOutputStream(sock.getOutputStream());
clientsen=inFromClient.readLine();
System.out.println("From Client: "+clientsen);
System.out.println("Reply mess to Client");
serversen=inFromuser.readLine();
outToClient.writeBytes(serversen+'\n');
} catch(IOException ex) {
ex.printStackTrace();
public static void main(String[] args) {
Server s = new Server();
s.go();
CLIENT PRG
import java.lang.*;
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.lang.Thread;
import java.applet.Applet;
class Client1
public static void main(String argv[]) throws Exception
String Sen;
String modsen;
BufferedReader inFromUser=new BufferedReader(new InputStreamReader(System.in));
Socket clientSocket=new Socket("192.168.1.2",6789);
DataOutputStream outToServer=new DataOutputStream(clientSocket.getOutputStream());
BufferedReader inFromServer=new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
System.out.println("Enter the mess to be sent to server");
Sen=inFromUser.readLine();
outToServer.writeBytes(Sen + '\n');
modsen=inFromServer.readLine();
System.out.println("FROM SERVER: " +modsen);
clientSocket.close();
please send me the solution code for my problem...sorry for inconvenience...
SERVER PROGRAM
*import java.io.*;*
*import java.net.*;*
*public class MyRunnable implements Runnable*
*public void run() {*
*go();*
*public void go(){*
*try {*
*String serversen;*
*ServerSocket welcomeSocket=new ServerSocket(6789);*
*while(true)*
*Socket connectionSocket=welcomeSocket.accept();*
*//BufferedReader inFromClient=new BufferedReader(new //InputStreamReader(connectionSocket.getInputStream()));*
*System.out.println("enter the mess to be sent to client");*
*BufferedReader inFromuser=new BufferedReader(new InputStreamReader(System.in));*
*DataOutputStream outToClient=new DataOutputStream(connectionSocket.getOutputStream());*
*//clientsen=inFromClient.readLine();*
*//System.out.println("From Client: "+clientsen);*
*//System.out.println("Reply mess to Client");*
*serversen=inFromuser.readLine();*
*outToClient.writeBytes(serversen+'\n');*
*} catch(IOException ex) {*
* ex.printStackTrace();*
*class Server1{*
*public static void main(String argv[]) throws Exception*
*Runnable threadJob=new MyRunnable();*
*Thread myThread=new Thread(threadJob);*
*myThread.start();*
*}*CLIENT PROGRAM
import java.io.*;
import java.net.*;
class Client2
public static void main(String argv[]) throws Exception
//String Sen;
String modsen;
//BufferedReader inFromUser=new BufferedReader(new InputStreamReader(System.in));
Socket clientSocket=new Socket("192.168.1.2",6789);
//DataOutputStream outToServer=new DataOutputStream(clientSocket.getOutputStream());
BufferedReader inFromServer=new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
//System.out.println("Enter the mess to be sent to server");
//Sen=inFromUser.readLine();
// outToServer.writeBytes(Sen + '\n');
modsen=inFromServer.readLine();
System.out.println("FROM SERVER: " +modsen);
clientSocket.close();
this is the code which i hav used using thread but i am gwetin error..ts is the error
Exception in thread "main" java.lang.NoSuchMethodError : Main -
Creation of files on server from client
i want to create a file on server from client.
so i have to create the file using uri that resides on server, but i am not able to create file using that URI
i want to create in this location.
"http://localhost:8080/web/a.jsp"
so please give me the syntax for that.
thanks in advancei checked that url........but its talking ablut urlconnection and url......but i want to create file with uri....could u plz help me
thx & regds -
HTTP/1.1 302 error while connecting UCM server from ODC Commit profile
Hi Team,
We are getting HTTP/1.1 302 error while connecting UCM server from ODC Commit profile.
Error Code
oracle.stellent.ridc.protocol.http.HttpProtocolException: Http/1.1 302
Please note that target UCM is SSO enabled.
Regards,
PiyushI am having a similar problem.
Have you been able to figure out what the issue is and/or what the library location should be? -
Cannot connect to Oracle 10g XE Server from Client
I have tried in vain to connect to the Server from a client installation using both browser and SQLPlus. Someone help me out pls...
Glogo.I have read the SelfStudy many times but Sheila can't help me. I have installed 10g XE Client on a different pc and tried connecting as follows to no avail:
FROM Run SQL Command line; I entered "conn glogo/*****@GServer:8080/apex" the report I always get is
ORA-12170: TNS:Connect timeout occured
From Internet Explorer; I entered "http://GServer/127.0.0.1:8080/apex" the report I get is internet explorer cannot display the webpage
I ensured the listener is on by typing LSNRCTL STATUS on the command line of the system running the Server. The report indicates that the Listener is ready.
I am still wondering what is wrong! I have also changed network setting from DHCP to static IP without results. What next friend(s)? Do you know? -
Connecting SQL server from Oracle 11g
Hello,
I know there are several threads available to this post but please help me in
*step by step process to follow in connecting 2 servers.
I tried everything in internet but got Connection closed error after tnsping of DNS name. Do i need to run any instance sort of thing in SQL server?
I dont have any access on SQL server.Whatever i have to do that has to be only in Oracle server.I got all those information and created ODBC (using SQL server driver) and tested the connection successfully in Oracle server. Altered INIT*.ORA,TNSNAMES.ORA and LISTENER.ORA but when pinging TNS awfully getting the afore said error.
My environment : Oracle 11g server - SQL server 2008 ( both in windows platform).
My
TNS names entry
GSIS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.1)(PORT = 63455))
(CONNECT_DATA = (SID=GSIS)
(SERVER = DEDICATED)
(HS=OK)
Listener entry
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = COB417147.cob.apac.bosch.com)(PORT = 1522))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(SID_NAME = GSIS)
(ORACLE_HOME = C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1)
(PROGRAM = hsodbc)
and
initGSIS
entry
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = GSIS
HS_FDS_TRACE_LEVEL = OFF
# Environment variables required for the non-Oracle system
#set
when tnsping i am getting
TNS connection closed.
I am awfully stuck here.
Please guide..Status
C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 11-MAY-2012 17:48
:14
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 11-MAY-2012 17:36:30
Uptime 0 days 0 hr. 11 min. 48 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\network\
admin\listener.ora
Listener Log File c:\oracle\app\amk1cob\diag\tnslsnr\COB417147\listener\
alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=COB417147.cob.apac.bosch.com)(PORT=1
522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=COB417147.cob.apac.bosch.com)(PORT=8
080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "GSIS" has 1 instance(s).
Instance "GSIS", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl.cob.apac.bosch.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.cob.apac.bosch.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
TNS ping
C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>tnsping GSIS
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 11-MAY-2
012 18:21:55
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.
1.1)(PORT = 63455)) (CONNECT_DATA = (SID=GSIS)) (HS=OK))
TNS-12537: TNS:connection closed
C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>
BTW it is 32-bit machine.
Edited by: 933729 on May 11, 2012 5:57 AM -
Sql plus can't connect to server From windows vista - VISTA 2007
ERROR-12154:TNS Could not resolve service name
SERVER OPERATING SYSTEM UNIXWARE 7.1.4
ORACLE 8i
D2K- RELEASE 2.1- SQL Plus 3.3
Loaded in front end on VISTA
NET EASY CONFIGURATION Closes, can't configure
I have done configuration manually.
I thing VISTA Not supporting or some protocol to be configured in VISTA
Please help me to solve the poblem.So your 8i db is on unixware and you are trying to connect to it from you local vista machine ?
What Oracle client version are you using on vista ?
Lowest 8i that support 10g client connection is 8 1 7 3 , 11g will not connect at all, and i think all 9i's will work,
but it seems that you have wrongly defined entry in tnsnames for the db you are trying to connect to. -
[Urgent] How to connect RMI Server from EJB
I'm trying to connect to an RMI server from an EJB. I have client code for the
RMI Server that already works standalone from the command line. However I am having
configuration issues with webLogic 6.1 allowing the connection to go through.
Standalone I create an RMISecurityManager, inside of the EJB I cannot do this.
How do I set up WL6.1 to allow RMI connections?
Injae LeeSome threads already posted :
Can Forms 10g access data from non-ORacle database?
Re: connect form to mysql server
Greetings....
Sim -
How to capture the message recived to the soap server from client -onMessag
Hi,
I want to send JAXM message from client to server
and In server print the message to a text file.
My client
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
SOAPConnection con = scf.createConnection();
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage msg = mf.createMessage();
SOAPPart part = msg.getSOAPPart();
SOAPEnvelope envelope = part.getEnvelope();
SOAPBody body = envelope.getBody();
javax.xml.soap.Name name = envelope.createName("Text");
javax.xml.soap.SOAPBodyElement bodyElement = body.addBodyElement (name);
bodyElement.addTextNode ("Some Body text");
This is the way i'm accessing now in theserver
public SOAPMessage onMessage(SOAPMessage msg) {
try {
FileOutputStream out; // declare a file output object
PrintStream p;
out = new FileOutputStream("E:/Accepter.txt");
p = new PrintStream(out);
int count = msg.countAttachments();
p.println("write");
msg.writeTo(out);
This creates the text file and write unwanted characters
1)How do i access the message content and store in a text file or
String variable??
2)How do i access the message content in name wise in he case of many messages recived to the server
Thanks for your time .
suda* To save a message to a file.
File file = new File("file.xml");
msg.writeTo(new FileOutputStream(file));
* To recreate a message (without attachments) from a file.
MessageFactory mfactory = MessageFactory.newInstance();
SOAPMessage msg = mfactory.createMessage();
SOAPPart part = msg.getSOAPPart();
StreamSource streamSource =
new StreamSource(
new FileInputStream("file.xml"));
part.setContent(streamSource);
// to view the recreated message
msg.writeTo(System.out);
* You should also be able to use DOMSource to recreate the message as:
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
Document domDoc =
builder.parse(
new File("file.xml"));
Source domSource = new
javax.xml.transform.dom.DOMSource(domDoc);
MessageFactory mfactory = MessageFactory.newInstance();
SOAPMessage msg = mfactory.createMessage();
SOAPPart part = msg.getSOAPPart();
part.setContent(domSource);
Hope this helps. -
Help-connect as sysdba from client
Hi All,
I'm using oracle 8i, win2k,
and set the parameter remote_login_passwordfile=exclusive
SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
INTERNAL TRUE TRUE
SYS TRUE TRUE
But when I tried to login from client(sqplus release 8.0.6.0.0 from oracle developer 6i), and the error occured:
SQL> connect sys/change_on_install as sysdba
ERROR:
ORA-01031: insufficient privileges
How to solve the problem?
TIAanyone please help.
TIA -
Unable to connect to server from Device(BlackBerry).
hi,
i have created one application and deployed to unwired server.I made the following settings in Options > Third Party Applications > Sybase Settings:
Server Name: pc102527.cts.com(Unwired Server)
Server Port: 5001
Farm ID: 0
User Name: supAdmin
Activation Code: 123 (Created in SCC > Device Users > MBS > Register)
However, I am not able to connect to the Unwired Server from Blackberry (BB).Its Showing Following log,
17:32:10 Queued Item
17:29:42 Waiting To Connect
17:29:42 Out of Network
17:29:41 Engine Startup
17:29:40 Engine Shutdown
If I run the application, it is stuck showing the message "Awaiting Connection to Server"
Any help would be appreciated.
Regards,
Sudheendra.KalakeriHi,
For JVM error 536 go to the simulator directory which located in Eclipse\plugins\net.rim.ejde.componentpack#.#.#_#.#.#.##\components\simulator and close the simulator run the clean.bat file then try again.
Ping server with Blackberry device
Go to your Home Screen -> Select Options -> Go to Wi-Fi Connections -> Open the menu -> Select Wi-Fi Diagnostics -> Open the menu -> Select Ping -> Scroll down one field -> Enter an ip address or computer name -> Open the menu -> Select Ping
Regards.
Tahir -
Hp-setup not connecting to server from China
Hello all,
this is a weird problem: when I am in China I sometimes need to install new HP printers; those printers, like LaserJet M1213nf MFB of today, are fully supported by hplip on Debian, but when I try to run hp-setup it cannoct connect to server. The same if I try to download plugin with hp-plugin.
Of course, I have absolutely no problem when running hplip suite application from Europe.
As far as you know, there is some particular issue related to the country (China) where I'm in?I understand now. The problem you are having is the printer will not install (hp_setup is also the name of printer's network).
How is the printer connected that you want to install the software for (USB, wireless or Ethernet)?
If it is a network connected printer and your computer is also on that network, you may be slowing down your PC installing software for every printer you come into contact with during your travels. I recommend trying to install the HP ePrint Driver which will automatically search for any printer on the same network and it will print to it like it is a driver.
This may or may not be a possibility for you but it works very well if you are currently unable to print due to the problems you are having right now getting the printer's software to install.
Bear with me while I research the information you have provided and I will see if these errors are related to your current location or not. Thank you for your patience.
I welcome anyone who knows about China's firewalls to comment but this is the English page (I tried to send you a link to the Asian Pacific forums and my computer did not like that so I will send you to the AP business support page). This is to increase your chances of getting an answer from that side of the world. It will be rare but I really hope someone comments here too.
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution! -
Can't connect to server from internet
Hi
I’ve just set up a new Mac mini server with Lion 10.7.1.
It’s configured as "Host name for Internet".
I can reach the router from Internet. NAT on the router is setup to forward the the required ports according to Apple’s document "Well known TCP and UDP ports used by Apple software products"
Still I can’t connect to any service on the server from Internet (Address Book, Calendar, AFP, VPN)
Please help!
AsbjørnYou can test it from outside with a telnet connection:
Open Terminal.app (Applications > Utilities) and insert:
telnet <ip-address-from-router> <port>
so testing the iCal port would be:
telnet 123.234.45.6 8008
or SSL:
telnet 123.234.45.6 8443
When you get "Escape character is '^]'." the connection is established to the server/port.
When you get " telnet: connect to address 123.234.45.6: Connection refused | telnet: Unable to connect to remote host" something is wrong with the setup.
Maybe it's the Port-forwarding, maybe the setup of the server.
Is it working in the local network?
I also would recommend you, to NOT share AFP over the network! The traffic isn't secured in a single way! Instead just configure VPN and establish the AFP connection through that VPN tunnel, but not directly by opening that connection to the internet!
Maybe you are looking for
-
How to I get premiere 12 to react after clicking new project?
I reinstalled premiere 12. How do I get it to work after clicking on new project?
-
Error encountered fatal error installation
I'm trying to install Acrobat Reader Pro but it gaves me this error. I have a PC.
-
Hi , Can any one help me to know, how to do database sizing for oracle database. If database sizing is differed from version than i want to know for 9i,10g and 11.5.10.2 application. I dont have basic knowledge for doing database sizing. please tell
-
Setting maximum number of records per page
Hi All, Can anyone tell me how can i set the maximum number of records that should be printed per page in a XML REPORT. How can i write the XML tag for this. thanks in advance, siddam
-
The case of the disappearing attendees
I have another query I've posted about ical adding me into every event that I enter when the calendar is published online. ie online I'm there (wrong) and offline I'm not (right). I thought I might have a go at sorting this and I wondered if ical did