How to establish this kind of connection string

I am using the model: Multiple Embedded Application Clients Accessing Remote Database. There is a database named ServerDB, a DSN named ServerDSN and a muti-user service on the server machine. Plus, there is a DSN named ClientDSN which will route to server machine on the client machine. Then how to establish the connection string for a client application under this condition in C# language? Thanks. It seems that the following connection model in the document doesn't work: OracleConnection conn = new OracleConnection
("DataDirectory=\\orace;Database=polite;DSN=*;uid=system;pwd=manager"); I don't know how to fill those parameters.
I also tried this: conn = new OracleConnection("DSN=ClientDSN;UID=System;PWD=Manager"); But still failed.
Thanks very much if someone can help me. Urgent problem.
Message was edited by:
user474792

You can read section 1.4.3 in dev.pdf of Oracle Lite for more detail. There is a model like above.
There is no main database like Oracle server. And there is only one odb file for all the clients. On every client machine, there is a DSN which include the information about server machine.
I think you'd better read the document first, thanks.
Hope you can continue to discuss with me, ^_^

Similar Messages

  • How to get this kind number?

    I have a float number,e.g myfloat=123.34???. When the first "?">=5,
    myfloat=123.35,or myfloat=123.34.Can anyone tell me how to get this kind number.
    Thanks in advance.

    In fact, not very clear of your problem.
    Supposing you want to get fix position's value after ".",
    you could firsly convert it to a string,
    then position "." ,use subString() to get the value.
    compare it, reconvert it back.

  • How to parse this kind of XML documents and store in a relational tables

    Can u guys help me out ,..how to parse these kind of XML documents..like under PR there Sr,CreationDate and DoBID.. Again under Sr...there are LD, CID,TID, RID and so on.....
    so how to parse this kind of data..how to create the structure of the table....pls help me out..
    <nk8:PR>
              <nk8:Sr>
                   <nk8:LD>---------</nk8:LID>
                   <nk8:CID>---------</nk8:CID>
                   <nk8:TID>---------</nk8:TID>
                   <nk8:RID>---------</nk8:RID>
                   <nk8:CC>OnError</nk8:CC>
                   <nk8:AID>---------</nk8:AID>
              </nk8:Sr>
              <nk8:CreationDateTime>2002-07-01</nk8:CreationDateTime>
              <nk8:DOBID>---------</nk8:DOBID>
         </nk8:PR>
         <ssm:ER>
              <ssm:PN>---------</ssm:PN>
              <ssm:SN>---------</ssm:SN>
              <ssm:SCt>---------</ssm:SC>
              <ssm:IA>
                   <ssm:NT>---------</ssm:NT>
                   <nk8:LID>---------</nk8:LID>
                   <nk8:CID>---------</nk8:CID>
                   <ssm:AN>---------</ssm:AN>
              </ssm:A>
         </ssm:ER>
         </nk8:PR>

    First, your XML document is not well formatted. Once you're done with that you can extract the values and store it in a table column.
    sql> WITH xml_table AS
      2  (SELECT XMLTYPE(
      3  '
      4  <nk8:PR xmlns:nk8="http://www.w3.org">
      5  <nk8:Sr>
      6  <nk8:LID>LID Value</nk8:LID>
      7  <nk8:CID>CID Value</nk8:CID>
      8  <nk8:TID>TID Value</nk8:TID>
      9  <nk8:RID>RID Value</nk8:RID>
    10  <nk8:CC>OnError</nk8:CC>
    11  <nk8:AID>---------</nk8:AID>
    12  </nk8:Sr>
    13  </nk8:PR>') XMLCOL FROM DUAL)
    14  SELECT extractvalue(t.column_value,'//nk8:LID','xmlns:nk8="http://www.w3.org"') "LID",
    15   extractvalue(t.column_value,'//nk8:CID','xmlns:nk8="http://www.w3.org"') "CID",
    16   extractvalue(t.column_value,'//nk8:RID','xmlns:nk8="http://www.w3.org"') "RID",
    17  extractvalue(t.column_value,'//nk8:CC','xmlns:nk8="http://www.w3.org"') "CC"
    18  FROM xml_table, table(xmlsequence(extract(xmlcol,'/nk8:PR/nk8:Sr','xmlns:nk8="http://www.w3.org"'))) t;
    LID        CID        RID        CC
    LID Value  CID Value  RID Value  OnError

  • How to realize this kind of ALV(with two headerlines)?

    Dear all:
      could anyony provide some advice on how to realize this kind of ALV?
    |--|--
    field2
    |--|||--
         field11  |  field12   |  field21  |  field212      |
    |--|||--
    wait your kindly advice

    I had similar kind of requirement. Have a look at below code. It will help you. You can execute it. You can see the report output which contains two header lines.
    REPORT  ztestvib    MESSAGE-ID zz  LINE-SIZE 50.
    TYPE-POOLS: slis.
    DATA: x_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv,
          l_layout TYPE slis_layout_alv,
          x_events TYPE slis_alv_event,
          it_events TYPE slis_t_event.
    DATA: BEGIN OF itab OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          male TYPE i,
          female TYPE i,
         END OF itab.
    SELECT vbeln
           posnr
           FROM vbap
           UP TO 20 ROWS
           INTO TABLE itab.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'MALE'.
    x_fieldcat-seltext_l = 'MALE'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'FEMALE'.
    x_fieldcat-seltext_l = 'FEMALE'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_events-name = slis_ev_top_of_page.
    x_events-form = 'TOP_OF_PAGE'.
    APPEND x_events  TO it_events.
    CLEAR x_events .
    l_layout-no_colhead = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
        is_layout          = l_layout
        it_fieldcat        = it_fieldcat
        it_events          = it_events
      TABLES
        t_outtab           = itab
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  top_of_page
          text
    FORM top_of_page.
    *-To display the headers for main list
      FORMAT COLOR COL_HEADING.
      WRITE: / sy-uline(103).
      WRITE: /   sy-vline,
            (8) ' ' ,
                 sy-vline,
            (8)  ' ' ,
                 sy-vline,
            (19) '***'(015) CENTERED,
                 sy-vline.
      WRITE: /   sy-vline,
            (8) 'VBELN'(013) ,
                 sy-vline,
            (8) 'POSNR'(014) ,
                 sy-vline,
            (8) 'MALE'(016) ,
                 sy-vline,
             (8)  'FMALE'(017) ,
                 sy-vline.
      FORMAT COLOR OFF.
    ENDFORM.                    "top_of_page
    The header lines are as below:
    VBELN      POSNR      MALE       FMALE
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to set ApplicationIntent=ReadOnly in Connection String for SharePoint 2013

    SharePoint 2013 and SQL Server 2012 allows us some additional options to create HA and DR sites through AlwaysOn Availablibity Groups and Listeners.  Problem that I'm having is that I have a DR site that is at a different location.  Microsoft
    recommends not to stretch the farm across different locations, so I've created a separate farm for DR.  I have my content database in an Availability Group so that is Asynchronously commits data changes across the 2 locations.  My DR site
    connects to the content database through a Listener. 
    Since the DR site is connecting to the content database through the Listener, it is connecting the primary replica.  In order to connect to the Read Only secondary replica, I need to add "ApplicationIntent=ReadOnly"
    to the connection string.  How do you do that?

    It supports a secondary being Readable, that is all it is telling you. It does not support, nor implement, Read-Intent. This is expected behavior. You can look at the Conn Strings via PowerShell, of course:
    $db = get-spdatabase | where {$_.TypeName -like "*Config*"}
    $db.DatabaseConnectionString
    Data Source=SPSQL;Initial Catalog=Config;Integrated Security=True;Enlist=False;
    Pooling=True;Min Pool Size=0;Max Pool Size=100;Connect Timeout=15
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to achieve synchronization after DCP connection string changed via sdk

    Hi guys,
    i have modified the DCP connection string using method: metaDataProperties.setProperty("SI_METADATA_BVCONN_ATTRIBUTES", new string here) via BOE SDK for java,  and then
    checked it  through Query Builder
    :select * from CI_APPOBJECTS where SI_GUID=' DC(DataConnection)  GUID' ,
    it appears ok, the DCP connection string has been changed.
    but the problem is :
    when i logon to the infoview or cmc , i find that the information of DCP parameter  is still the former one.
    (in most cases , it display the old, former con-info,  but it also display the correct new data several times  )
    And if i restart the machine , it will be work ok , infoview will get the latest DCP parameters information.
    (related  service  restarting is of no effect)
    how to refresh the latest boe managed information?
    Thanks.
    Regards,
    Jinling.
    Edited by: jinling xiang on Nov 18, 2010 10:00 AM
    Edited by: jinling xiang on Nov 18, 2010 10:03 AM

    Not quite what I meant - I was suggesting you load the entity immediately after reading it from PU_B, or anytime before associating it into PU_A, so before the merge. What you have not shown though is any code on how you are obtaining IntegrationDepartment and integrating it into PU_A, or what you mean by it is returning a refreshed version of Topic. This problem could also be the result of how your provider works internally - this is a TopLink/EclipseLink forum post so I cannot really tell you why you get the exception other than it would be expected to work as described with EclipseLink as the JPA provider.
    So the best suggestions I can come up with are prefetch your entity, try posting in a hibernate forum, or try using EclipseLink/TopLink so someone here might be better able to help you with any problems that arise.
    Best Regards,
    Chris

  • How to establish a MYSQL Database connection in JSP page.

    Hi People,
    Tell me how to establish mysql database connection in JSP page.
    Needed details on:
    1) what are all the mysql drivers need to be included.
    2) what is the syntax for establish a database connection

    hi,
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.htmlsee down for mysql config with tomcat

  • How to make this kind of mouseover?? URGENT!!

    Please PROFESSIONAL help me T^T
    URGENT for this T^T
    http://superjunior.smtown.com/
    I want to know how to make that kind of mouseover ^^
    Hope PROFESSIONAL can teach me ^^
    http://starimg.smtown.com/superjunior/version04/site/images/main_navi.swf

    Hi, I don't know what program you are using, but perhaps the Flash forum would be helpful. This is the Flash Player forum . You could also check the other Adobe Forums that would be for your Adobe program.
    Thanks,
    eidnolb

  • How to get this kind component?

    I want to get this kind component.It's like a web's link.When i point to it,it's highlight.When i cliked it,it invoke other (such as program,URL).

    try this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Atest extends JFrame 
         JPanel pan = new JPanel();
    public Atest()
         super();
         setContentPane(pan);
         setBounds(1,1,600,450);     
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
                   dispose();     
                   System.exit(0);
         pan.setLayout(null);
         Alink alink = new Alink("Is this what you want?");
         alink.setBounds(50,90,128,22);
         pan.add(alink);
           setVisible(true);
    public class Alink extends JLabel implements MouseListener
         Color fcolor = Color.blue;
         Color lcolor = Color.red;
    public Alink(String s)
         super(s);
         addMouseListener(this);
         setForeground(fcolor);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.setColor(Color.darkGray);
         g.fillRect(0,getHeight()-2,getWidth(),1);
    public void mouseClicked(MouseEvent e)
         fcolor = Color.black;
         lcolor = Color.magenta;
    public void mouseEntered(MouseEvent e)
         setForeground(lcolor);
    public void mouseExited(MouseEvent e)
         setForeground(fcolor);
    public void mousePressed(MouseEvent e)
    public void mouseReleased(MouseEvent e)
    public static void main (String[] args)
         new Atest();  
    }       Noah

  • How to perform this kind of requirement

    Hi Experts,
    User wants a report to track customer attitute history and also the change indicator. I created a DSO  and set a key figure to record the customer attitude (key are customer ID and system date). use number 1,2,3,4,5 instead of five different kinds of attitude in DSO. In query, I create two restrict key figures and use user input two date variable to restrict the value of that key figure. current issue is that the value display in report is as number 1,2,3,4,5. user can't get the description as five kinds of attitude. Could you please give some comment and solution about this kind of requirement. Thanks.
    Br, Delve

    Hi,
    "Attitude" has to be present in the DSO/Cube. It could be a Data field in DSO but it has to be a dimension in the Cube. Only then you will be able to pull it in the query.
    Being in dimension, every new value of the attitude will create a new record in the cube. So for 5 different days you will get 5 records. Then in query if you drag this dimension, it will show you 5 different attitudes as per date.
    You can choose to display only the latest attitude by restricting this field in the query to the last date in the date range.
    Regards,
    Nishant.

  • Particle effect -how to achieve this kind of effect exactly

    Hello   please help me to achieve this type of flickering particle effect.  how to achieve this in After effect  which is shown at 0.8 sec to 0.11  in the attached link video. http://www.istockphoto.com/stock-video-2682258-hearts.php

    I can't give you the exact settings but you could use Trapcode Particular with a custom particle or CC Particle world. Just turn gravity to 0 and set up a custom particle.
    Your particle layer will be behind the spinning hearts layer. This should get you going in the right direction.

  • How to fix this Config ADS Connection ???

    Dear all,
    I testing ADS connection, (login transaction SM59, create ADS connection, and test it.  I check the pasword of ADSUer in SU01 and in logon&Security in SM59 is the same).
    - It display a dialog box: "Respose from Web Server contains cookies. Accept ?"
    - I check Accept all further cookies. and click YES.
    - Then a login dialog box appear, request to enter UserName, Password .  Which account I should use to login ?
    - Sometimes it go directly to the result ( login diaglog does not appear ), but the Result is:   ~status_reason: Forbidden.
    What is going on here? How can I fix this?

    Did you activate the services in SICF?
    Markus

  • How to handle this kind of scenario in SBO

    Hello, I am new to SAP Business One. I would like to know how to handle Transporation Company scenario below in SBO.
    QUESTION 1: A transportation company has 30 truck. The company receives orders from the customer and use the trucks to deliver the goods from Point A to Point B everyday. The cost for delivery is $0.50 per-KG.
    The way I handle above:
    1. In ITEM MASTER DATA:
    Create a new item > Item Type: Labor > Description: Delivery from Point A to Point B > and determine the delivery price is $0.50.
    2. Use the item created in no 1 above when creating Sales order/Invoice.
    If the weight is 5000kg then simply put QTY 5000 in Sales Order with the price of $0.50/KG, which has been set in Item Master Data.
    Is the above method correct or there is better way to handle?
    QUESTION 2: TRACKING EACH TRUCK EXPENSES BY ITS LICENSE PLATE:
    Each truck has Spare Parts expense (e.g. bulbs, oil, battery, tires etc) that the company would like to track.
    The company purchased the spare parts from suppliers and keep it in the warehouse. When a truck needs to replace its spare parts, the company will issue the parts and record it under that truck's license number as that truck's expense.
    The goal is SBO must be able to provide detail monthly expense report for each truck when inquired by its license plate. I prefer NOT to manually input "directly" in Journal Entry to prevent error.
    Thanks.

    Hi,
    welcome to sbo forum!
    For your question 1, it will depend if you will only have 1 route for all of your deliveries.If your point of origin is always point a then destination is point B w/ price of $0.50,then you are right with your process... but if you will have to expand and move into different places, i think it will best for you to create a UDT for your pricing.
    in summary:
    1.create UDT pricing(with origin,destination and price)
    2.Create UDF in row level of Sales order(U_origin,_U_destination)
    3.) create FMs for your Sales order Origin and destination based on UDT Pricing table.
    4.) create automatic fms for your price( based on origin and destination selection).
    for question 2, all your repairs and maintenance will pass through AP invoice( either by item or service). in our country we normally use Ap service,since a truck has normally several types of spare parts. This figures will will surely add up to the number of item master data record in your system ,since you will need create a unique item for each and every item available.
    -To monitor all your expenses, you will need to create a UDF in the header of PO, GRPO or AP invoice, place your plate number here. so that when you extract your reports, you will easily identify your expenses per truck.
    in summary:
    1.create UDF for header of PO,GRPO or AP( Udf_Plate number) you can set valid values for you udf or by FMS with default values.
    2.Create Udf for lines of PO,GRPO or ap(UDF_spare part type) --note: if you will use the Item type document for repairs and  maintenance then i guess you dont need to add UDF_spare parts.
    Hope i was able to help you.
    Regards,
    Darius Gragasin

  • How to read this kind of array from a txt file?

    I have been trying to read this file given below.
    Please have a look at 4th line, there is a gap between 89 and 32.
    I want to read a gap as a "0" value, and convert all values to integer.
    I have been using split function, but I still don't know how to figure the gap problem.
    Please help me, thanks.
    1 60 72 88 41 58
    2 50 45 37 86 13
    3 44 41 99 54 24
    4 12 89 32 89
    5 48 97 25 85 55
    6 22 46 34 90 98
    7 75 85 5 1
    8 86 23 39 69 52
    9 42 18 75 13 72
    10 24 77 27 18 30
    11 34 42 5 12
    12 31 87 47 75 8
    13 19 16 74 55 77
    14 26 57 5 63 81
    15 51 7 95 100 8
    16 33 93 82 85 72
    17 55 21 49 25 3
    18 15 29 33 18 61
    19 33 42 64 66 63
    20 51 36 97 39 19
    21 51 60 32 25 51
    22 88 34 29 76 10
    23 37 93 9 38 100
    -------------------------------------------

    scan each line with the following code
    it adds each line to a new array
    //scan file
            try {
                Scanner Filescan = new Scanner(new File("directory"));
                while (Filescan.hasNextLine()) {
                Array.add(Filescan.nextLine());
                catch (Exception e)
                System.out.println (" File has not been found");
                } 

  • How to get this kind of film look?!

    How to get the film look like in this video:
    I shoot on the canon 60d with multiple lenses.
    Thanks.

    Thanks for the answers, finally I've got the result. May be it'll be useful for other people:
    So i've used one popular magic plugin for adjusting look with default presets  and lowered fps with default effect "Posterize time".
    Good luck

Maybe you are looking for