Edit init.ora at host or client machine ?

Hi all,
i am trying to use UTL_FILE to write errors to a log file if an exception is encountered when running a stored procedure . I call the stored procedure from a client machine
I have some basic qns:
1) Can the log file exist on the client server or it has to be on the server machine?
2)i know i have to edit the init.ora file to include the directory where the file exists. Should i edit the init.ora file on the client or the server?
I believe if the qn to (1) is server machine, then naturally the ans to (2) should also be server?

I believe if the qn to (1) is server machine, then naturally the ans to (2) should also be server? Yes,you are right,and don't confuse between server and client,because init.ora always exists on server machine ,and its not part of client installation.
Kuljeet

Similar Messages

  • How to define a DSN without using a tnsnames.ora on the PC client machine

    Hi,
    Client : Windows XP with Oracle9i ODBC driver
    Server : Oracle 10 on Solaris
    I need to define a DSN which does not rely on tnsnames.ora on the client machine.
    I tried to use a file dsn, but without success, because I don't know the parameters to use.
    I used these params in the file.dsn :
    [ODBC]
    DRIVER=Oracle9i ODBC Driver
    UID=testuser
    PWD=testpw
    SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=9999))(CONNECT_DATA=(SERVICE_NAME=testSID)))
    It does not work ....

    Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
    Anyway, I tried this and it worked fine for me (using 10204)
    TESTFILE.DSN
    ================
    [ODBC]
    DRIVER=Oracle in OraDb10g_home1
    server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))
    TEST.VBS
    ==========
    set con = createobject("adodb.connection")
    con.open "filedsn=testfile;uid=scott;pwd=tiger;"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
    set con = createobject("adodb.connection")
    con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Hope it helps,
    Greg

  • To edit init.ora

    This is a continuation from this thread Create a db manually
    I am using 9i on Windows platform.
    I want to edit / copy the init.ora file so that I can create a db manually.
    I have located the init file, to exist here:
    C:\oracle\admin\unidad\pfile
    The name of the file is init.ora.0262007174511
    On the link that Paola sent, it says :
    One way of getting started on your initialization parameter file is to edit a copy of the sample initialization parameter file
    Sorry, but how can I edit this init file, or make a copy to use for my new database?

    The database instance can be started using a PFile or an SPFile (Server PFile). These files tell the instance how to do basic memory configuration, advanced memory configuration (using parms such as processes), load and lock specific memory info (instance and DB name) and where to find the control files.
    The steps are detailed in the DBA manual - there is an entire chapter provided in excruciating detail and - if you were to use Oracle 10g R2, the part you want is at http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#i1008760
    You can copy any existing pfile (init???.ora) as a new file (initSID.ora) and edit the copy using any editor (notepad). The valid fields and values are all defined in the Oracle Reference manual. (That is Oracle Reference, not Oracle SQL Reference, not Oracle PL/SQL Reference, or any other variant.) Each field has it's own entry in the table of contents. For 10gR2 the document is http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams_part.htm#i200948
    Since you want to use Oracle 9i, I refer you to the general documentation site to get to these manuals - either http://docs.oracle.com or http://tahiti.oracle.com

  • Pausing SAPinst to adjust Oracle init.ora parameter

    Guys, I'm doing an unicode system import and its taking too long. So I intend to adjust some of the oracle memory and other parameters as recommended the SAP notes.
    However, in SAPinst, from the phases of db creation, tablespace creation, r3load process and till the end is one continuous phase. I want to stop SAPinst right after the db creation phase, so that I can edit init.ora, restart the db and proceed with the r3load phase.
    how do i do it ? I've tried making a dummy change to the location of the "import directory", to trick sapinst to stop on purpose, but this doesnt  seem to be working.
    do it need to edit the confusing control.xml or keydb.xml, i miss those *.r3s days.

    > your mean the R3load.exe binary itself in the kernel directory ? Perhaps i can give it a try..
    Yes.
    Or select "start migration monitor manually". Sapinst will then stop, you can reconfigure the database and then use the import monitor to import the database.
    Markus

  • Intermittant disconnection of Shared Drives on Windows 7 Client machines hosted in WIndows Server 2008 Standard Edition

    The environment - Windows Server 2008 Standard/Windows 7 32 bit Client machine.
    Share - It is not a DFS share.
    Antivirus - McAfee
    The issue - 1 user is unable to connect to a particular shared drive hosted from within the Windows Server 2008 Standard file server.  This drive is one of the multiple drives which are supposed to be connected to the user machine during logon using
    the logon script.  All the other drives mentioned in the logon script gets mapped fine but one particular drive does not.  The user uses a laptop and we have checked his connections while in LAN, Wireless, VPN.  Everything seems to be working
    fine apart from this one shared drive.  Rest of the users within that office gets the drive fine but just not this one user.  Since we are not domain admins so we do not have a visibility of the group policies linked to this particular drive and
    hence RSOP as well does not help.  We have not seen the user getting logged into the machine using a TEMP profile as well for us to ascertain that the issue may be with a TEMP profile logon. 
    Please note that the drive does get connected at times and at times the connection just drops off!  As an interim measure the local IT has created a batch file and given it to the user which maps the drive for the user. 
    Any help in resolving this long impending issue would be much appreciated!
    Suman

    Hi Suman,
    You could keep the session always active to workaround this issue. Please open Control Panel -> Administrative tools -> Local Security Policy -> Local Policy -> Security Options and set the value of the policy Microsoft Network Server:Amount
    of idle time required before suspending a session to 99999 and see how it works.
    This security setting determines the amount of continuous idle time that must pass in a Server Message Block (SMB) session before the session is suspended due to inactivity. Administrators can use this policy to control when a computer suspends an inactive
    SMB session. If client activity resumes, the session is automatically reestablished. For this policy setting, a value of 0 means to disconnect an idle session as quickly as is reasonably possible. The maximum value is 99999, which is 208 days; in effect, this
    value disables the policy.
    For more detailed information, please refer to the thread below:
    Loss of mapped drive, networked drive disconnects
    http://social.technet.microsoft.com/Forums/windows/en-US/c6da707b-5224-40f5-8d0e-e8985453221d/loss-of-mapped-drive-networked-drive-disconnects
    You could also refer to the article below to troubleshoot the issue:
    Mapped Drive Connection to Network Share May Be Lost
    http://support.microsoft.com/kb/297684
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How do I detect if adobe digital edition is present on client machine or not ?

    Hello,
    I am working on a project, whihc involves finding out if the client machine has adobe digital edition Ver. 1.5 installed.
    I went through the Installer SDK, and the examples that come with it, especially ade_detect_layers.htm, however, I cant figure out the variable which will signify the presence of ADE.
    By the looks of it, G_nADEInstalled variable should have it, but it always 0, no matter if the ADE is installed or not.
    The ade_web_library.swf does reflect the state of ADE, i.e. if ADE is present, it displays - Launch, and if ADE is not present, is displays - INSTALL. However, I want the state information in a javascript variable.
    Anybody got any ideas ?
    -Thanks.

    You should be able to detect ADE using the following mechanism.
    Resources required:
    swfobject.js
    ADEBadgeLauncher.js
    DigitalEditionsDetection.js
    ade_web_library.swf
    The 4 files above are provided by Adobe. It might be worth copying the
    swf file in your web app, as I had some issues initially with using
    adobe-hosted swf.
    Apart from that, you need some new javascript functions:
    Call the below function inline from the page, where you want to detect the ADE.
    The second function below is the callback which is used by Adobe SWF.
    I hope this makes things clear. It might be worth getting this working
    on a local apache server before integrating with a web application.
    And, check on both IE and firefox.
    //Called inline from the page to detect ADE, and hide/show the layer
    for installing the button..
    function detectADE(swfPath) {
    ADE_Detect_doOnLoad('', false, false, swfPath);
    ///doOnLoad(swfPath);
    //This is a callback function invoked after the function
    ADE_Detect_doOnLoad() has finished.
    function setG_nADEInstalled(IS_INSTALLED) {
    var obj = document.getElementById('ADE_ShowContentDiv');
    if (IS_INSTALLED == '1') {
    if (obj != null && typeof(obj.style)!= "undefined"){
    //document.getElementById('ADE_ShowContentDiv').style.visibility = "hidden";
    Thanks

  • Client machine requires "hosts file" include IP-address of server machine??

    Hi. all.
    I am using real IP address in tnsnames.ora at client machines.
    The client machine(windows)'s hosts file should have ip-address of server machine?
    Without hosts file(ip-address of server), tnsping is always OK, but
    sqlplus returns error from time to time.
    With hosts file(ip-address of server), sqlplus returns no error.
    The database is 2-node RAC database on windows2003.
    Thanks in advance.
    Best Regards.

    If you've got server side load balancing then the clients can get a redirect to one of your RAC nodes when it tries to connect. This redirect will be to a host name (at least thats what I get with our RAC nodes) - so you will definitely need the to be able to resolve the RAC node names. Resolution through the local hosts file or DNS doesn't really matter.
    Ahmed

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Few Win client machine throws up (only port 1521) ORA-03135 Error

    Hi Everyone,
    We have been encountering a strange issue with the client --> database connectivity.
    Oracle Database Server 11.2.0.3 (64bits) Single Instance - AIX 6.1 (64 bits)
    Oracle Client 11.2.0.3 (32 bits) - Windows 2008 R2 Standard (64 bits)
    Two windows client machines disconnect from the database server while running a script. The connection hangs when the script is being executed with just the cursor on the screen. After a while, it throws up the ORA-03135- connection lost contact error.
    The same script works fine from other windows machine perfectly even on VPN and having different versions of oracle clients installed on them too. Have tried following up a number of KB articles. Have tried setting up sql.net timeout parameters on the server as well as client accordingly. Checked firewall settings with network team. Even tried opening up all firewall ports for test purposes but still the issue persists.
    Oracle Support suggested a number of troubleshooting steps and one of the step was the following:
    ".....Try changing listener port instead of common port 1521. Many routers including Juniper handles Oracle default listener port 1521 specially and thus might impose traffic limit."
    Quickly we tried changing the listener port and also the firewall guys changed the port to 1522 from existing 1521. As soon as we did this, we were able to run the scripts fine from both the machines clearly indicating a stable connection. We tried reverting back to 1521 and encountered the same issue.
    Anyone aware of this peculiar issue? All help will be really appreciated! Thank you!

    Hi Helios,
    I have gone through the documents earlier and the respective sql parameters has been set. But again, the problem is ONLY with 2 of our windows client machines and that too when the db listener port is set to default 1521. Our network team confirmed that all the SQL related ALG filtering has been disabled. The Intrusion Protection System (IPS) is also disabled as default between the client - database network VLAN.

  • Custom WCF app hosted in SharePoint _Layouts errors when access form client machine.

    Hello,  I have a very strange behavior of the WCF dotnet application hosted in SharePoint server. When I run the application on SharePoint server by accessing
    http://SPSServer/_layouts/WCFCustApp loads correctly and executs all functionalities. However from the client machine when I access the same application, it throws below error:
    [12/13/2013 8:31:02 PM] System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue.
    Local socket timeout was '00:00:59.9530000'. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
       --- End of inner exception stack trace ---
    Server stack trace:
       at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
       at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
       at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
       at System.ServiceModel.Channels.ConnectionStream.Read(Byte[] buffer, Int32 offset, Int32 count, TimeSpan timeout)
       at System.ServiceModel.Channels.ConnectionStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.Security.NegotiateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at System.ServiceModel.Channels.StreamConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
       at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
       at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
       at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
       at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
       at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at CR.PerfMgmt.EmployeeServiceReference.EmployeeService.GetByEmployeeCode(String employeeCode)
       at CR.PerfMgmt.EmployeeServiceReference.EmployeeServiceClient.GetByEmployeeCode(String employeeCode)
       at CR.PerfMgmt.Base.BaseLayoutsPage.GetCurrentEmployee()
       at CR.PerfMgmt.Base.BaseLayoutsPage.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Hello,  I have a very strange behavior of the WCF dotnet application hosted in SharePoint server. When I run the application on SharePoint server by accessing
    http://SPSServer/_layouts/WCFCustApp loads correctly and executs all functionalities. However from the client machine when I access the same application, it throws below error:
    [12/13/2013 8:31:02 PM] System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue.
    Local socket timeout was '00:00:59.9530000'. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
        at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
        at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
        --- End of inner exception stack trace ---
    Server stack trace:
        at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
        at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
        at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
        at System.ServiceModel.Channels.ConnectionStream.Read(Byte[] buffer, Int32 offset, Int32 count, TimeSpan timeout)
        at System.ServiceModel.Channels.ConnectionStream.Read(Byte[] buffer, Int32 offset, Int32 count)
        at System.Net.Security.NegotiateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
        at System.ServiceModel.Channels.StreamConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
        at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
        at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
        at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
        at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
        at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
        at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
        at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
        at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
        at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
        at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
        at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
        at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
        at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
        at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
        at CR.PerfMgmt.EmployeeServiceReference.EmployeeService.GetByEmployeeCode(String employeeCode)
        at CR.PerfMgmt.EmployeeServiceReference.EmployeeServiceClient.GetByEmployeeCode(String employeeCode)
        at CR.PerfMgmt.Base.BaseLayoutsPage.GetCurrentEmployee()
        at CR.PerfMgmt.Base.BaseLayoutsPage.OnLoad(EventArgs e)
        at System.Web.UI.Control.LoadRecursive()
    Both I verified and none of those helped to resolve the issue. Will you please let me know if anyone else has encountered this problem?
    I have noticed the WCF project has one web.config and it does not take from it when the application is deployed to SharePoint site collection. I made sure the sharepoint web.config file has all tcpip and other web service configurations. It works great on the
    server and just failed to run from client machine :(
    Experts any other solutions that you might have experienced?
    Thanks

  • Get host name and ip addrees of the client machine for window VISTA

    Hello Friends !!
    I have write the following code to get the ip adress and host name of the client machine ..
    it works fine for windows xp and 2000 but in vista it gives this type of out put.
    host name = 0:0:0:0:0:0:0:1
    ip addresss = 0:0:0:0:0:0:0:1
    what i have to make changes in my code to get the proper ip address and hostname for vista...
    My code is listed below....
    code ::
    InetAddress remoteAddress = null;
    // Setting Host Name...
    request.setAttribute("reportHostIP", request.getRemoteAddr());
    // Setting Host IP Address...
    try
         remoteAddress = InetAddress.getByName(request.getRemoteAddr());
         //This will give you the full qualified domain name of the client
    request.setAttribute("reportHostName", remoteAddress.getCanonicalHostName());
    catch(Exception e)
         logger.error(e.getMessage(), e);
    }

    BIJ001 wrote:
    Is it not IPv6 by any chance?It is. And if I remember correctly, then "0:0:0:0:0:0:0:1" (or "::1" for short) is the IPv6-equivalent to "127.0.0.1", i.e. it's the loopback device.

  • List all printers configured from server and local machine when hosted in server machine and working from Client machine

    Hello Team
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    can any one please let me know the process, in this i was able to load printers from server, so need to load printers from local machine.
    Thanks in Advance
    Bindu

    Hi Bindu,
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    From this message, this is a web application in asp.net, and it also related to IIS.
    You should post in the dedicated ASP.Net Forum
    http://forums.asp.net
    For IIS issue, http://forums.iis.net/ IIS forum should post.
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ORA-12560: TNS:protocol adapter error on client machine(linux)

    Hi,
    Oracle10gXE
    Linux Fedora14
    Getting below error when trying to connect the database from client machine.
    Error
    ====
    ORA-12560: TNS:protocol adapter error
    Below is the output of 'export' command on client machine showing enviornment variable values:
    oracle@work-desktop:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin$ export
    declare -x HISTCONTROL="ignoreboth"
    declare -x HOME="/home/oracle"
    declare -x LANG="en_US.UTF-8"
    declare -x LANGUAGE="en_US:en"
    declare -x LD_LIBRARY_PATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib:"
    declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
    declare -x LESSOPEN="| /usr/bin/lesspipe %s"
    declare -x LOGNAME="oracle"
    declare -x MAIL="/var/mail/oracle"
    declare -x NLS_LANG="AMERICAN_AMERICA.AL32UTF8"
    declare -x OLDPWD="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
    declare -x ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
    declare -x PATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin"
    declare -x PWD="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin"
    declare -x SHELL="/bin/bash"
    declare -x SHLVL="1"
    declare -x SQLPATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/sqlplus"
    declare -x TERM="xterm"
    declare -x TNS_ADMIN="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/network/admin"
    declare -x USER="oracle"
    oracle@work-desktop:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin$
    Database connection works fine when connecting from the server itself( i.e. locally on the database server).
    Is there anything still missing on the oralce client machine ?
    Regards

    Hi,
    also below is the o/p of netstat -nr command
    -bash-4.1$ netstat -nr
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    172.16.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    0.0.0.0 172.16.40.1 0.0.0.0 UG 0 0 0 eth0
    seems some issue with IP address in the Destination column as the IP address of the database server machine is 172.16.40.64
    may be this can be creating the problem.
    If it is so, then in which file to change the IP address ?

  • Tracking hardware inventory of client machines

    hi experts
    Is there any mechanism in oracle forms or other technology( in oracle ) provides to get track hardware status of the client machines.
    or is there any other way to solve this thing.
    pl give me the solution
    Thanks in advande

    What would you like to track?
    Local IP?
    Computer name?
    MAC address?
    what type of information do you need?
    In java you can get some system info with this:
    // Get all system properties
    Properties props = System.getProperties();
    // Enumerate all system properties
    Enumeration enum = props.propertyNames();
    for (; enum.hasMoreElements(); ) {
    // Get property name
    String propName = (String)enum.nextElement();
    // Get property value
    String propValue = (String)props.get(propName); } this is my bean to read some information as PJC bean
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.*;
    import oracle.forms.ui.*;
    import java.net.InetAddress;
    public class ClientInfo extends VBean {
        private static final ID CLIENT_IP   = ID.registerProperty("CLIENT_IP");
        private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
        private static final ID CLIENT_OS   = ID.registerProperty("CLIENT_OS");
        private static final ID CLIENT_USER   = ID.registerProperty("CLIENT_USER");
        private IHandler mHandler;
        private String hostAddress = "";
        private String hostName = "";
        private String hostOs = "";
        private String hostUser="";
        public ClientInfo() {
            try {
                System.out.println("+----------------------+");
                System.out.println("+ClientInfro PJC       +");
                System.out.println("+Dat spr: 10.09.2007   +");
                System.out.println("+Dat spr: 04.07.2008   +");
                System.out.println("+Dat spr: 10.07.2008   +");
                System.out.println("+----------------------+\n");
                this.hostAddress = InetAddress.getLocalHost().getHostAddress();
                this.hostName = InetAddress.getLocalHost().getHostName();
                this.hostOs = System.getProperty("os.name");
                this.hostUser = System.getProperty("user.name");
                System.out.println("Host   adress: " + hostAddress);
                System.out.println("Host     name: " + hostAddress);
                System.out.println("Host op. syst: " + hostOs);
                System.out.println("Host username: " + hostUser);
            } catch (Exception e) {
                System.out.println("Napaka pri inicializaciji beana: " +
                    e.toString());
        public void init(IHandler handler) {
            super.init(handler);
            mHandler = handler;
            System.out.println("Bean initialized..");
        * metoda setira vrednost variable v formsih
        * @return
        * @param pid
        public Object getProperty(ID pid) {
            if (pid == CLIENT_IP) {
                System.out.println("Client IP: " + this.hostAddress);
                return ""+this.hostAddress;
            if (pid == CLIENT_NAME) {
                System.out.println("Client Name: " + this.hostName);
                return ""+this.hostName;
            if (pid == CLIENT_OS) {
                System.out.println("Client os: " + this.hostOs);
                return ""+this.hostOs;
            if (pid == CLIENT_USER) {
                System.out.println("Clientuser: " + this.hostUser);
                return ""+this.hostUser;
            return super.getProperty(pid);
    }You can also get other infor for example "motherboard serial number" as this
    import java.io.File;
    import java.io.FileWriter;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    public class MiscUtils {
      private MiscUtils() {  }
      public static String getMotherboardSN() {
      String result = "";
        try {
          File file = File.createTempFile("realhowto",".vbs");
          file.deleteOnExit();
          FileWriter fw = new java.io.FileWriter(file);
          String vbs =
             "Set objWMIService = GetObject(\"winmgmts:\\\\.\\root\\cimv2\")\n"
            + "Set colItems = objWMIService.ExecQuery _ \n"
            + "   (\"Select * from Win32_BaseBoard\") \n"
            + "For Each objItem in colItems \n"
            + "    Wscript.Echo objItem.SerialNumber \n"
            + "    exit for  ' do the first cpu only! \n"
            + "Next \n";
          fw.write(vbs);
          fw.close();
          Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
          BufferedReader input =
            new BufferedReader
              (new InputStreamReader(p.getInputStream()));
          String line;
          while ((line = input.readLine()) != null) {
             result += line;
          input.close();
        catch(Exception e){
            e.printStackTrace();
        return result.trim();
      public static void main(String[] args){
        String cpuId = MiscUtils.getMotherboardSN();
        javax.swing.JOptionPane.showConfirmDialog((java.awt.Component)
             null, cpuId, "Motherboard serial number",
             javax.swing.JOptionPane.DEFAULT_OPTION);
    }or hardisk serial number
    public static String getSerialNumber(String drive) {
      String result = "";
        try {
          File file = File.createTempFile("realhowto",".vbs");
          file.deleteOnExit();
          FileWriter fw = new java.io.FileWriter(file);
          String vbs = "Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\n"
                      +"Set colDrives = objFSO.Drives\n"
                      +"Set objDrive = colDrives.item(\"" + drive + "\")\n"
                      +"Wscript.Echo objDrive.SerialNumber";  // see note
          fw.write(vbs);
          fw.close();
          Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
          BufferedReader input =
            new BufferedReader
              (new InputStreamReader(p.getInputStream()));
          String line;
          while ((line = input.readLine()) != null) {
             result += line;
          input.close();
        catch(Exception e){
            e.printStackTrace();
        return result.trim();
      }Or you can write a DLL in C, C++ and use it in Java with jni..
    Edited by: Peterv6i on Aug 30, 2010 10:58 AM

  • Where the init.ora ,   tnsnames.ora,   listener.ora,    sqlnet.ora

    If client-side and server-side software are located in different machines, basically, init.ora and listener.ora are located in the server-side, and tnsnames.ora and sqlnet.ora are located in the client-side, am I right?

    The confusion comes because, as stated earlier by Sanjay, a server could also be a client...
    Here a very simple example on one and only one Windows machine with the same user :
    ---here it is a connection as from client
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:36:38
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = phoenix)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEMO111P)))
    OK (10 msec)
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:02 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> quit
    Disconnected from Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    --- we remove the sqlnet.ora
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>rename sqlnet.ora _sqlnet.ora
    ---here it is a connection as from client
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:37:30
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    TNS-03505: Failed to resolve name
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:11 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    ---here it is a connection as from server, still working, in that case it does not use tnsnames/sqlnet
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>set ORACLE_SID=demo111p
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:37 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>So, we are on server, the behaviour change depending what we are connecting with (client or server method).
    Nicolas.

Maybe you are looking for

  • Performance issues with data warehouse loads

    We have performance issues with our data warehouse load ETL process. I have run analyze and dbms_stats and checked database environment. What other things can I do to optimize performance? I cannot use statspack since we are running Oracle 8i. Thanks

  • Applet Error:java.security.AccessControlException: access denied

    Hi, I just successful deploy an business component project to oralce 8.1.6 as an EJB Session bean, and the test of application module is successful. In the same workspace, I create an new project with an applet(which contains only an grid control)as

  • Lock objects to text

    Does anyone know of a way to lock floating objects to text in a Pages09 document? I love the way Pages deals with floating objects, so much better than Word, but I'd like to be able to lock individual or grouped objects (images, text boxes) to a spec

  • What's the meanning of "bad status" in DSC alarm config for Shared Variable?

    as the title LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注! 欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn

  • SCCM 2012 Application rollout timings

    Just getting to grips with SCCM 2012, have a deployed Adobe Flash 13 to a bunch of users. How does SCCM handle this? i.e. Does it deploy straight away once a user logs on or is there other criterea taken into account?