How to access server db by using IP

I wanted to access the main server database , there are two database running one Live and the opther is Test . I got an IP 254.10 . I am running oracle 8i on windows 2003 server.
hare krishna
Alok

Thanks yon ,don't i need to update listner Well, no. The listener on the server should already be configured for the 2 databases. If not, then ask your DBA to do so... or do it yourself. but since it's 8i databases, it sould not be a new install, so the listeners must already be set up.
/ sqlnet.ora file ? On the server, no. On your client, no also. The default configuration is OK.
one more thing how to open a session through IP ?You won't open it through IP. Once you configured the tnsnames.ora file like
ALIAS =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = server_ip_here)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = the_database_service_here)
  )You'll just use: sqlplus login/password@alias
Regards,
Yoann.

Similar Messages

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How to access server from TOAD

    i have a doubt as to how to access a Database server from TOAD. If, we have to access from SQLplus command prompt, we define the entry in tnsnames.ora file. But, how to access a Database server from TOAD. I hope, my question is clear. Please, help in solving the doubt.
    regards.

    thanks, for your answer. Does it mean that I need to install oracle to get tnsnames.ora?
    Also, my scenario is that I need to connect using TOAD to oracle which is there on a system over a remote LAN. My entry in tnsnames.ora has to match the local LAN IP which is specified in the listener.ora but If I put the local LAN IP of the remote LAN in my tnsnames.ora, it will not make much sense. The entry in
    tnsnames.ora is
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.26)(PORT = 1521))
    But, I have access to the system like public IP 192.29.212.156.

  • How to access Call Back Functions using *.dll in the Labview?

    Hai,
    I am Pavan Ram Kumar Somu.
    I am new to Labview, currently I am working on MVB Interface.
    I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
        1. Pointer Arguments(To which memory it points in Labview)
        2. function pointers Arguments
        3 .pointers in structures and pointer structures in structures and many other data types.
    Please Answer the below queries also:
    1. How to pass pointer arguments to API functions in DLL and how to collect pointer  
        return types from API functions in DLL
    2. How to pass structure arguments to API functions in DLL and how to collect structure
        return types from API functions in DLL
    3. How to use callback functions(nothing but function pointers) in Labview and how to
        collect callback fuctions return types from API functions in DLL
    I need your help while passing these datatypes to API functions in DLL from labview.
    Suggest me if there is any other alternative for implementing this task.
    I am referencing some examples here:
    Examples:
    I)
    Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
    void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
    II) #include <windows.h>
         #include <process.h>
         HANDLE rcvEvent0, rcvEvent1;
    /* Function call*/
    CanGetReceiveEvent(handle[0], &rcvEvent0);
    Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
    With regards
    Pavan Ramu Samu

    "Somu" <[email protected]> wrote in message news:[email protected]...
    Hai,
    I am Pavan Ram Kumar Somu.
    &nbsp;
    I am new to Labview, currently I am working on MVB Interface.
    &nbsp;
    I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
    &nbsp;&nbsp;&nbsp; 1. Pointer Arguments(To which memory it points in Labview)
    &nbsp;&nbsp;&nbsp; 2. function pointers Arguments
    &nbsp;&nbsp;&nbsp; 3 .pointers in structures and pointer structures in structures and many other data types.
    &nbsp;
    Please Answer the below queries also:
    &nbsp;
    1. How to pass pointer arguments to API functions in DLL and how to collect pointer&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp; return types from API functions in DLL
    &nbsp;
    2. How to pass structure arguments to API functions in DLL and how to collect structure
    &nbsp;&nbsp;&nbsp; return types from API functions in DLL
    &nbsp;
    3. How to use callback functions(nothing but function pointers) in Labview and how to
    &nbsp;&nbsp;&nbsp; collect callback fuctions return types from API functions in DLL
    &nbsp;
    I need your help while passing these datatypes to API functions in DLL from labview.
    &nbsp;
    Suggest me if there is any other alternative for implementing this task.
    &nbsp;
    &nbsp;
    I am referencing some examples here:
    Examples:
    I)
    Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
    &nbsp;
    void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
    &nbsp;
    II) #include &lt;windows.h&gt;
    &nbsp;&nbsp;&nbsp;&nbsp; #include &lt;process.h&gt;
    &nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp; HANDLE rcvEvent0, rcvEvent1;
    &nbsp;
    /* Function call*/
    CanGetReceiveEvent(handle[0], &amp;rcvEvent0);
    &nbsp;
    Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
    &nbsp;
    With regardsPavan Ramu Samu
    Search the forum (forums.ni.com) for callback, pointer or handle, and you'll find that it is all possible, but not very easy.
    e.g.: http://forums.ni.com/ni/board/message?board.id=170&message.id=88974&requireLogin=False
    Regards,
    Wiebe.

  • How to access the Approvals task using url

    Hi,
    Please let me know how to access the approval tasks in BPM using the url.
    I need to access the approval tasks from outside BPM
    Thanks

    Hi Latha,
    There are many ways to pass parameters to 2nd page.
    However try using hashmap.
    1st page code in processformrequest:
    import com.sun.java.util.collections.HashMap;
    HashMap hashmap = new HashMap();
    hashmap.put("var_enpid",enpid);
    pageContext.forwardImmediately("XX_SECOND_PG", //Function Name of the 2nd page
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashmap, // put Null if no parameters to pass thru hashmap
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    2nd page code in processrequest:
    String empid = (String)pageContext.getParameter("var_enpid");
    Regards
    Sanu

  • How to access ports in windows using JDK 1.5 or later

    Hi,
    My task is to read an input from the parallel port and use a modem to dial a phone number connected to a seril port .
    At the same time i am generating an SMS depending on the input i read from parallel port.To run this SMS program i need a new version of java.
    I've been searching for days to find a way to access serial port in a new version.I managed only 1.1.8.
    Please..
    If someone has any idea may i know how to copy the necessary files (dll and packages) to JDK 1.5 or later please let me know.
    I'm using windows platform:(
    Thanks
    goodnews
    If anyone needs info about Accessing ports in windows using jdk1.1.8 just post below..I'll give what i have.

    user12858801 wrote:
    Hello,
    Has there been any development with this post?after 3 years, what do you think?

  • How to access database from applet using connection pooling.

    Hi,
    I am using tomcat 4.1, JRE 1.4.2_10, MySQL 5.0, and IE 6.0. I can access the database using connection pooling from JSP without problems. But, if I try to acess from the applet, I get the following exception (related to JNDI.):
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    I know what this acception means, but I don't know how to fix it. I set up connection pooling in my Tomcat 4.1 that talks to MySQL 5.0. As I said, when I access from jsp, JNDI works. But, applet complains. Please help. In my applet, the following code accesses the database:
    ArrayList toolTipData =
          access.getToolTipData (projectName,interfac);This is the snipet of my Access class:
    public ArrayList getToolTipData (String projectName, String interfac) {
        System.out.println("In getToolTipData");
        ArrayList toolTipData = new ArrayList();
       try{
        Context ctx = new InitialContext();
        if(ctx == null )
            throw new Exception("No Context");
        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/interfacesDB");
        if (ds != null) {
          Connection conn = ds.getConnection();
          if(conn != null)  {
              Statement s = conn.createStatement();
              //For some reason paramtized queries don't work, so I am forced
              //to this in slighly less eficient way.
              ResultSet rst = s.executeQuery("select * from interfaces");
              while (rst.next()) {
                 if (rst.getString("Project_Name").equals(projectName) &&
                     rst.getString("Interface").equals(interfac)) {
                   System.out.println("getToolTipData: ITG #" + rst.getString("ITG"));
                   toolTipData.add("ITG #: " + rst.getString("ITG"));
                   toolTipData.add("SPNE Prime Name: " +
                                   rst.getString("SPNE_Prime_Name"));
                   toolTipData.add("PD Prime Name: " +
                                   rst.getString("PD_Prime_Name"));
                   toolTipData.add("IT Prime Name: " +
                                   rst.getString("IT_Prime_Name"));
                   toolTipData.add("MLC Priority: " +
                                   rst.getString("MLC_Priority"));
                   toolTipData.add("Gary's Prime: " + rst.getString("Garys_Prime"));
                   toolTipData.add("QA Prime: " + rst.getString("QA_Prime"));
                   toolTipData.add("Brief Description: " +
                                   rst.getString("Brief_Description"));
                   toolTipData.add("Project_Status: " +
                                   rst.getString("Project_Status"));
              conn.close();
      }catch(Exception e) {
        e.printStackTrace();
      return toolTipData;
    ....

    The jsp runs on the server, whereas the applet runs on the client so
    you must package with your applet any jndi implementation specific classes
    and
    Properties props = new Properties();
    props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory" );
    props.setProperty("java.naming.provider.url", "url:1099");
    Context ctx = new InitialContext(props);
    Object ref = ctx.lookup("...");

  • I set up the VPN, so how do access server at work?

    I am a complete novice when it comes to VPNs.  I was given permission to work from home and was told I had to set up a VPN to access shared documents saved on the server.  I have a PC at work and a MacBook Pro at home, and my work IT department had no idea on how to set up the VPN on the Mac and won't give me any support.  (I tried and failed to get the VPN set up on our desktop PC at home and the work IT department claimed it was a problem with my broadband server).  I did my research, got the VPN set up on the Mac, and it shows that I'm connected.  I'm at a standstill.  What do I do now?    I apologize because I can't remember which version of the OS I have, but I bought the Mac almost a year ago, if that's any help.
    I thank you in advance.
    Kate

    k8freeman wrote:
    My question is even more basic than this.  I can see on the network applications screen that I am connected, so where do I go from there?  I don't know the security protocol.
    At this time you are not providing enough information to get any informed help. Go back to IT and ask for the settings for the VPN on a PC, post them here, we'll translate them to Macspeak. Are you trying to access the desktop of the office machine or just the file storage areas on the server?
    PS: Your IT department is hopeless.

  • How to access entities from badi using CL_CRM_BOL_CORE

    Hi experts
    I'm implementing a  badi which will get called from sapgui and web ui  where I have to use the infromation from web ui . From badi we can use cl_crm_bol_core to access message container but in the same way how can I use get related entities etc.
      Those methods are avialable in the class  cl_crm_bol_core but I dont know how to get the reference to some mandatory importing parameters.
    kindly let me know how can I get the values in badi. below is my code. for   lv_parent ?= lr_core->get_entity( ). I have to pass some mandatory import parametes, I'm not having any idea how to get the reference to those import parameters.
    lr_core = cl_crm_bol_core=>get_instance( ).
            IF lr_core IS BOUND.
              DATA : lv_entity_coll TYPE REF TO if_bol_entity_col,
                     lv_parent TYPE REF TO cl_crm_bol_entity.
              lv_parent ?= lr_core->get_entity( ).
              lv_entity_coll ?= lr_core->get_related_entities( iv_entity = lv_parent ).
    Thanks & Regards
    Madhu

    Hi,
    you can use each BOL query object in your ABAP coding.
    The BOL queries are listet in transaction GENIL_MODEL_BROWSER.
    Here a short example where i read the address_guid for a businesspartner:
    METHOD GET_BUPA_ADDRESS_NO.
      DATA: core TYPE REF TO cl_crm_bol_core.
      core = cl_crm_bol_core=>get_instance( ).
      core->start_up( 'ALL' ).
      DATA:   ent TYPE REF TO cl_crm_bol_entity,
              ent_addr TYPE REF TO cl_crm_bol_entity,
              query   TYPE REF TO cl_crm_bol_query_service,
              result  TYPE REF TO if_bol_bo_col.
    * Geschäftspartner Kopf holen:
      query = cl_crm_bol_query_service=>get_instance( 'BuilHeaderSearch' ).
      query->set_property( iv_attr_name = 'PARTNER'
                           iv_value = im_partner_no ).
      result ?= query->get_query_result( ).
      ent ?= result->get_first( ).
      IF ent IS BOUND.
        ent_addr = ent->get_related_entity( iv_relation_name ='BuilAddressRel' ).
        IF ent_addr IS BOUND.
          CALL METHOD ent_addr->get_property_as_value
            EXPORTING
              iv_attr_name = 'ADDRESS_NUMBER'
            IMPORTING
              ev_result    = ev_bp_addrno.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    I hope this example helps to understand. Feel free to ask if there are questions.
    Kind regards
    Manfred

  • How can HANA Server Side JavaScript use "Eval" function?

    Hi HANA Experts,
      I use EVAL function to create an object by classname in xsjs file, but it has an Error "Eval is evil". In Client javascript, we can use the Eval function. How can we use "EVAL" function in HANA server side javaScript?  Thanks a lot.

    That looks like the client side JSLint check to me.  Those can be customized or even turned off. If you truly want to use eval.
    >XSJS inherits most of the features of javascript but do not expect all of its features
    Actually that's not exactly accurate.  XSJS is standard ECMA JavaScript (Mozilla SpiderMonkey VM).  It does run in strict mode, however. This isn't a limitation of XSJS but a conscious decision to force the VM into the strict mode - which is really the recommendation for JavaScript anyway.  We also apply JSLint checks as above. Sometimes they are quite restrictive. However they can be customized or even completely turned off at the project level:
    To the point of Eval, there are some excellent articles online.
    http://javascriptweblog.wordpress.com/2010/04/19/how-evil-is-eval/
    coding style - When is JavaScript&amp;#39;s eval() not evil? - Stack Overflow
    JSLint Error Explanations - eval is evil

  • How to access CQ configuration settings using CQ HTTP client?

    Hi,
    I am trying to access CQ configuration in my application using CQ HTTP client. I am able to access through ConfigAdmin, but not directly.
    Please suggest a way to access the configuration directly by CQ HTTP client.
    Is CQ proxy settings directly available to CQ HTTP client? if so, how do we access it?
    Thanks

    Yes it is directly available. The proxy does not need to be explicitly configured for each HttpClient since it is done automatically when the com.day.commons.osgi.wrapper.commons-httpclient gets activated.  Make sure your bundle imports [1] and call as HttpClient client = new HttpClient();
    [1]
    org.apache.commons.httpclient,version=3.1.0 from com.day.commons.osgi.wrapper.commons-httpclient (xx)
    org.apache.commons.httpclient.methods,version=3.1.0 from com.day.commons.osgi.wrapper.commons-httpclient (xx)

  • HOw to access ApplicationResource.properties file using getSystemResource

    I am using struts. I need to access ApplicationResource.properties file, which I define my connection String there. All my methods are static method, so I cannot use getResourceAsStream() method from ClassLoader class, so i have to use getSystemResourceAsStream() method. However, I always get class not found error. Inputstream is always null.
    my ApplicationResource.properties file is stored in projectname/classes, and all my other classes store in projectname/classes/com/testname/. Can anybody tell me how to make it work? Thank you in advance.
    Here is my code:
    private static String getConnectionURL() throws FileNotFoundException,IOException,ClassNotFoundException
    Properties properties = new Properties();
    InputStream fromFile = ClassLoader.getSystemResourceAsStream("ApplicationResources.properties");
    if (fromFile !=null)
    properties.load(fromFile);
    String connectionURL = properties.getProperty("progressiveURL");
    return connectionURL;
    }

    Try either:
    ClassLoader.getSystemResourceAsStream("/ApplicationResources.properties");
    or
    YourClass.class.getResourceAsStream("/ApplicationResources.properties");
    in either case, you need to add the "/" prefix.

  • How to access PL/SQL code using JDBC

    Hi,
    We have stored procedures written in PL/SQL. These stored procs take both IN and OUT parameters. The parameter types are both regular datatypes like NUMBER, VARCHAR etc. So far so good. I know how to handle these data types.
    Some of the stored procs also use parameters that are defined as composite data types like %ROWTYPE or %RECORD. How would I set the values of these data types? Can I use the oracle extension - support for Oracle Objects to accomplish this. If so please let me know with an example. If not any other suggestions or help will be greatly appreciated.
    Thanks
    Karthik

    JDBC (and SQLJ) only support SQL types as stored procedure arguments, not PL/SQL types.
    If your stored procedure uses a PL/SQL-only type, such as BOOLEAN, record types, or index-by tables, then you cannot call it from Java (or, for that matter, from other languages as well).
    There is one exception: scalar index-by table arguments have been supported since JDBC 8.1.7 in the JDBC-OCI driver (refer to the JDBC manual for specifics).
    One workaround is to create wrapper PL/SQL stored procedures that take SQL arguments and convert them to PL/SQL -and vice versa- and call the original PL/SQL stored procedures. For example, a record type could be exploded into individual arguments, or it could be converted into a SQL object type, index-by tables could be represented as SQL collection types, etc.
    You can find a small example of this in the back of the JPublisher manual, where an example is given how to call a PL/SQL stored procedure that takes BOOLEAN arguments.

  • How to access the User Reports using 'Administrator' login in OBIEE 10g

    Is there any way to access the reports saved in Users/'My folders' using the Administrator Login?

    Hi User,
    Create a new shared folder.
    Provide access to all the users.
    Now, ask the user who created the report in 'My Folders' to save the report in this new shared folder.
    And, Delete those reports in 'My Folders'.
    Now, as the report is saved in New shared folder you can access - this one.
    Else--- Ask the user who created the report in my folder to make sure that it is available to all users. (Permissions - Permission should need to be provided for Administrator group)
    Thank you.

  • How to Access pc-pwered software using OS X Lion?

    I upgraded my Mac Pro to Lion in order to transfer from MobilMe to iCloud, not realizing all my pc-pwered software would not be accessible or readable.  Since I have several worksheets in Excel and Power Point, and other programs that use pc-pwered geneology software, I need to access them.  I am willing to buy Intel-powered software for the future but need to meanwhile access the old programs.

    I felt your pain when I purchased the mid-2011 Mac Mini to replace a dead iMac G5 last year, without doing my normal due diligence on Lion.
    Like others I had the need to continue to access my finances in Quicken Deluxe 2002 (since rendered moot by Intuit's decision to release Quicken 2007 for Lion) as well as certain Excel 2004 charts that get trashed when opened in Excel 2011.
    Since necessity is indeed the mother of invention, I worked out this solution: I installed Snow Leopard (with Rosetta) into Parallels 7 in Lion:
                        [click on image to enlarge]
    Full Snow Leopard installation instructions are available here:
    http://forums.macrumors.com/showthread.php?t=1365439

Maybe you are looking for

  • I'm receiving and error (-50) when trying to open itunes 10.5 beta on OSX 10.7 beta. Any suggestions would be greatly appreciates!

    I'm recieving and error (-50) when trying to open itunes 10.5 beta.  Any suggestions would be greatly appriciated!!!

  • IPhoto not working, will not open!

    Everytime I try to open iPhoto, I get the folllowing message. iPhoto is unable to open this library.  You have opened this photo library with a newer version of iPhoto. Please quite and use the latest version of iPhoto.  According to my system update

  • Sorting with Comparator, wrong order?

    Hello, i've a string array, and every string in this array in form of "Firstname [MiddleName] LastName". After i sort the array i get "List A" below, but i expect to get "List B". All "Alp"s must be together like dictionary order, isn't it? What caus

  • How can I disable pdf.js for all users?

    We as a company deal with a lot of PDF files.. Now while we can simply download the PDFs and there not be a problem, we're used to the Adobe Viewer and *not* downloading them. I've been told the new pdf.js viewer will not display most of the PDFs we

  • Generating XML in the background

    Hello SAP Gurus, I am trying to generate XML files on SAP 4.6. I able to generate the files in the foreground using GUI_DOWNLOAD function, but do not know how to do in the background. I have tried searching some on the SDN network, but have no soluti