Call Oracle from within MS Word

Using VBA macro within MS Word to extract data from Oracle DB 8.1.5. I get "Unable to open data source". What values for datasource name?

You can leave DSN Name blank. thanks.
null

Similar Messages

  • How to call methods from within run()

    Seems like this must be a common question, but I cannot for the life of me, find the appropriate topic. So apologies ahead of time if this is a repeat.
    I have code like the following:
    public class MainClass implements Runnable {
    public static void main(String args[]) {
    Thread t = new Thread(new MainClass());
    t.start();
    public void run() {
    if (condition)
    doSomethingIntensive();
    else
    doSomethingElseIntensive();
    System.out.println("I want this to print ONLY AFTER the method call finishes, but I'm printed before either 'Intensive' method call completes.");
    private void doSomethingIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    private void doSomethingElseIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    }Question: how do you call methods from within run() and still have it be sequential execution? It seems that a method call within run() creates a new thread just for the method. BUT, this isn't true, because the Thread.currentThread().getName() names are the same instead run() and the "intensive" methods. So, it's not like I can pause one until the method completes because they're the same thread! (I've tried this.)
    So, moral of the story, is there no breaking down a thread's execution into methods? Does all your thread code have to be within the run() method, even if it's 1000 lines? Seems like this wouldn't be the case, but can't get it to work otherwise.
    Thanks all!!!

    I (think I) understand the basics.. what I'm confused
    about is whether the methods are synced on the class
    type or a class instance?The short answer is; the instance for non-static methods, and the class for static methods, although it would be more accurate to say against the instance of the Class for static methods.
    The locking associated with the "sychronized" keyword is all based around an entity called a "monitor". Whenever a thread wants to enter a synchronized method or block, if it doesn't already "own" the monitor, it will try to take it. If the monitor is owned by another thread, then the current thread will block until the other thread releases the monitor. Once the synchronized block is complete, the monitor is released by the thread that owns it.
    So your question boils down to; where does this monitor come from? Every instance of every Object has a monitor associated with it, and any synchronized method or synchonized block is going to take the monitor associated with the instance. The following:
      synchronized void myMethod() {...is equivalent to:
      void myMethod() {
        synchronized(this) {
      ...Keep in mind, though, that every Class has an instance too. You can call "this.getClass()" to get that instance, or you can get the instance for a specific class, say String, with "String.class". Whenever you declare a static method as synchronized, or put a synchronized block inside a static method, the monitor taken will be the one associated with the instance of the class in which the method was declared. In other words this:
      public class Foo {
        synchronized static void myMethod() {...is equivalent to:
      public class Foo{
        static void myMethod() {
          synchronized(Foo.class) {...The problem here is that the instance of the Foo class is being locked. If we declare a subclass of Foo, and then declare a synchronized static method in the subclass, it will lock on the subclass and not on Foo. This is OK, but you have to be aware of it. If you try to declare a static resource of some sort inside Foo, it's best to make it private instead of protected, because subclasses can't really lock on the parent class (well, at least, not without doing something ugly like "synchronized(Foo.class)", which isn't terribly maintainable).
    Doing something like "synchronized(this.getClass())" is a really bad idea. Each subclass is going to take a different monitor, so you can have as many threads in your synchronized block as you have subclasses, and I can't think of a time I'd want that.
    There's also another, equivalent aproach you can take, if this makes more sense to you:
      static final Object lock = new Object();
      void myMethod() {
        synchronized(lock) {
          // Stuff in here is synchronized against the lock's monitor
      }This will take the monitor of the instance referenced by "lock". Since lock is a static variable, only one thread at a time will be able to get into myMethod(), even if the threads are calling into different instances.

  • How to configure Outlook 2013 to call direct from within the application without using Lync 2013?

    I have Outlook 2013 running on Windows 7 Pro 64-Bit with Lync 2013 (Office 365 Pro). We are using a 3rd party TAPI app from FortiVoice. WE would like to be able to place calls directly from
    within Outlook either by selecting a telephone number within an email and/or via the PEOPLE (Contacts) area.
    What guidelines should we use to enable this feature and not have Lync 2013 intercepting the process i.e. let OUTLOOK handle placing calls?
    Thanks in advance for any feedback provided.

    Hi,
    There seems no solution for this issue so far.
    Here is a fix for older versions of Outlook, maybe worth a try.
    http://support.microsoft.com/kb/959625/en-us
    However, if it doesn’t work, please try Malte’s reply as the workaround in the following thread. See:
    http://social.technet.microsoft.com/Forums/office/en-US/3946f1bb-cc3d-41b6-ab9c-092d62d024d1/outlook-2013-tapi-calling-with-lync-installed?forum=officesetupdeploy
    Thanks.
    Steve Fan
    TechNet Community Support
    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.

  • Problem calling servlet from within a jsp

    I have a servlet which obtains images for a page
    http://bychance.ca/servlet/ImageServlet?PhotoId=AJ-LA-4008
    I use the servlet from within a jsp
    <img src="servlet/ImageServlet?PhotoId=<%=rs.getObject("ID")%>" border="0">
    for some reason it does not work, the images are never called. I have another servlet which is called the same way and it works fine
    <img src="servlet/ImageServletLarge?PhotoId=<%=strPhotoId%>" border="0">
    Thank you all for your time

    this is my servlet code. Like I said it works fine in another servlet
    rs.next();
    byte[] bytearray = new byte[rs.getInt(1)];
    int size=0;
    InputStream sImage;
    sImage = rs.getBinaryStream(2);
    response.reset();
    response.setContentType("image/jpeg");
    while((size=sImage.read(bytearray))!= -1 )
    response.getOutputStream().write(bytearray,0,size);
    response.flushBuffer();
    sImage.close();

  • Where to log after calling BSSV from within C BSFN?

    I called a BSSV object from within a C BSFN. This BSSV object will return E1MessageList. I want to know where can I log these E1 Messages from within the C BSFN? Any documentation about this is greatly appreciated.
    I'm using E900 and JDeveloper 11g.
    Thanks

    Hello,
    Saw your query and don't know if this is still an issue for you ?
    You are calling a BSSV from within a C BSFN meaning you are consuming from that BSSV an external web service.
    The E1MessageList generated in the BSSV you can not return as such to the calling BSFN.
    I would suggest you simply create a new logging BSFN suitable for your specific purposes with a DSTR reflecting the parameters of the E1MessageList object such as ErrorAlphaDescription, ErrorDataDictionaryItem, ErrorFileName, ErrorGlossaryText, ErrorLevel, ErrorSourceLineNumber, etc...
    Just before the finishInternalMethod you can read through the E1MessageList array and parse out the data. For every element found you call your custom logging BSFN which in turn can then write this data to a file or whatever.
    Hope this helps!
    Brgds,
    Jan Hox

  • Help!How can I find the name of a calling procedure from within a procedure/function?

    Is there anyway to find out the name of calling procedure(database) from within a database stored procedure/function? This is required for creating an auditing module.
    Thanks,
    Abraham
    ===========
    email:[email protected]

    You can use this query to get the procedure names that are calling your procedure.
    SELECT name FROM all_Dependencies
    WHERE upper(referenced_name) = 'YOUR_PROC_NAME'
    In your procedure, you can get these values into a cursor and then use them one by one.
    Hope this would help.
    Faheem

  • Is it possible to call msync from within an EVB Application?

    Does anyone know how to run mSync from within an embedded visual basic application?
    Some sample code or documentation would be particularly welcome.

    The following is taken from the Windows CE documentation that ships with 9i Lite:
    Table 3-16 ISyncOption Public Properties
    username -> Name of the user.
    password -> User password.
    syncParam -> Synchronization preferences. See Section 3.7.2.4, "COM Interface SyncParam Settings" for more information.
    transportType -> Type of transport to use. Only "HTTP" type is supported currently. The default value is HTTP.
    transportParam Parameters of the transport. See Section 3.7.1.5, "Java Interface TransportParam Parameters" for more information.
    syncParam documentation is (also taken from the same document):
    The syncParam is a string that allows support parameters to be specified to the synchronization session. The string is constructed of name-and-value pairs, for example:
    "name=value;name2=value2;name3=value3, ...;"
    The names are not case sensitive, but the values are. The field names which can be used are listed in Table 3-17.
    Table 3-17 COM Interface SyncParam Settings
    "reset" -> N/A Clear all entries in the environment before applying any remaining settings.
    "security" -> "SSL" "CAST5" Use the appropriate selection to choose either SSL or CAST5 stream encryption.
    "pushonly" -> N/A Use this setting to upload changes from the client to the server only, download is not allowed.This is useful when data transfer is one way, client to server.
    "noapps" -> N/A Do not download any new or updated applications. This is useful when synchronizing over a slow connection or on a slow network.
    "syncDirection" -> "SendOnly" "ReceiveOnly" "SendOnly" is the same as "pushonly". "RecieveOnly" allows no changes to be posted to the server.
    "noNewPubs" -> N/A This setting prevents any new publications created since the last synchronization from being sent, and only synchronizes data from the current publications.
    "tableFlag [Publication.Item]" "enable" "disable" The "enable" setting allows [Publication.Item] to be synchronized, disable prevents synchronization.
    "fullrefresh" -> N/A Forces a complete refresh.
    "clientDBMode" -> "EMBEDDED" "CLIENT" If set to "EMBEDDED", access to the database is by conventional ODBC, if set to "CLIENT" access is by multi-client ODBC.
    Example 1
    The first example enables SSL security and disables application deployment for the current synchronization session:
    "security=SSL;noapps;"

  • Hyperlink from within a Word Document to a specific page within a PDF document.

    I was hoping that someone would be able to assist me.  I would like to create a hyperlink (used as a citation) on my Word document that opens directly to a specified page within a PDF document (possible other word docs and so on, but less
    often).  How do I go about performing this?  Another note, all the documents would reside within a SharePoint site.

    I was hoping that someone would be able to assist me.  I would like to create a hyperlink (used as a citation) on my Word document that opens directly to a specified page within a PDF document (possible other word docs and so on,
    but less often).  How do I go about performing this?  Another note, all the documents would reside within a SharePoint site.
    I am not a Word guru, but I don't think you can run a macro from a hyperlink. But you can create an active X label that runs a macro when clicked. You can use the following macro to go to a specific page in a PDF file.
    Sub OpenPDFPageView(DisplayPage As Integer)
    'In order to use the macro you must enable the Acrobat library from VBA editor:
    'Go to Tools -> References -> Adobe Acrobat xx.0 Type Library, where xx depends
    'on your Acrobat Professional version (i.e. 9.0 or 10.0) you have installed to your PC.
    Dim PDFApp As AcroApp
    Dim PDFDoc As AcroAVDoc
    Dim PDFPageView As AcroAvPageView
    Dim PDFPath As String
    Dim DisplayPage As Integer
    PDFPath = "C:\Users\doudou\documents\test1.pdf"
    'Set the page you want to be displayed
    'DisplayPage = 3
    'Initialize Acrobat by creating App object
    Set PDFApp = CreateObject("AcroExch.App")
    'Set AVDoc object
    Set PDFDoc = CreateObject("AcroExch.AVDoc")
    'Open the PDF
    If PDFDoc.Open(PDFPath, "") = True Then
    PDFDoc.BringToFront
    'Maximize the document
    Call PDFDoc.Maximize(True)
    Set PDFPageView = PDFDoc.GetAVPageView()
    'Go to the desired page
    'The first page is 0
    Call PDFPageView.GoTo(DisplayPage - 1)
    'Set the page view of the pdf
    Call PDFPageView.ZoomTo(2, 50)
    End If
    Set PDFApp = Nothing
    Set PDFDoc = Nothing
    On Error Resume Next
    'Show the adobe application
    PDFApp.Show
    'Set the focus to adobe acrobat pro
    AppActivate "Adobe Acrobat Pro"
    End Sub

  • How to call Oracle Form within Oracle Form?

    Hi,
    I have a requirement to call a customized Oracle Form from standard Oracle Form (Special Information screen) and vice versa.
    Then need to display the person detail accordingly.
    Is it possible to be done? Appreciate guidance on this item.
    Thanks and Regards,
    SC

    Veerendra,
    Sounds like you are using the Oracle E-business Suite (EBS). If that is the case, opening a form is different in the EBS than it is in a non-EBS Forms application. You have the register the Custom Form in the EBS for starts.
    This question should be posted in the General EBS Discussion forum not here. Also, I recommend you take a look at the Oracle Applications Documentation and find the "Oracle Applications Developer's Guide".
    Craig...

  • Calling JNI from within a ejb

    Hi,
    I'm trying to call a native method from a EJBean class,using iPlanet App Server, after deployment, when i run, I'm getting the following error,
    "com.netscape.server.eb.UncheckedException: java.lang.Error thrown by impl nextgensecurity.NgtnSecurityBean@1ade762, err = java.lang.UnsatisfiedLinkError: validateinHSM "
    But the same thing is working when tried with a simple java class,
    can any one help regarding this ASAP,
    Thanx in advance
    Kiran

    Hi Joe,
    Thanks a lot for ur reply,
    But the LD_LIBRARY PATH is set to the user that runs the App Server, Since it is throwing a UnsatisfiedLinkError, there must be a problem with the link only(i.e calling native method).
    The flow of data is as follows
    1 A method from ejb calls another java method in an other java class which is in the same jar file,passing the actual arguments.
    2 That java method calls the Native methos residing in the same class file
    3 The Native mentod calls a c function as usual
    My ejb is working fine up to the Native Method call, at this point it is throwing an error
    All my java files are in a package, and my .h file contains package name in the prototype of c function
    If you get any ideas please mail me ASAP
    ThanQ
    Kiran

  • Calling stored procedure from within container TX

    Hi
    I am calling a stored procedure that resides locally (Oracle) from within a session
    bean after updating a number of ejb's. The stored procedure works fine if it performs
    a simple delete. However, the stored procedure is in turn calling another stored
    procedure that may reside in a different db. In such a case the update to the
    ejb's in not reflected at all. Is this possible to do this within one tx? BTW
    there is a reason I'm not calling the remote SP directly.
    Thanks

    Hi,
    I am not sure if I fully understand your question, but here is a list of points which you
    should check:
    - transaction boundaries
    - transaction isolation level
    - XA datasources and drivers
    - are the changes from the SP commited properly to the database ?
    - also note that WLS5.1 (if you are using it ?) supports 2 phase commit only with a
    single datasource
    Regards,
    Christian Buchegger
    Developer Relations Engineer
    BEA Support
    Michael schrieb:
    Hi
    I am calling a stored procedure that resides locally (Oracle) from within a session
    bean after updating a number of ejb's. The stored procedure works fine if it performs
    a simple delete. However, the stored procedure is in turn calling another stored
    procedure that may reside in a different db. In such a case the update to the
    ejb's in not reflected at all. Is this possible to do this within one tx? BTW
    there is a reason I'm not calling the remote SP directly.
    Thanks

  • Calling a java application from within another class

    I have written a working java application that accepts command line parameters through public static void main(String[] args) {} method.
    I'm using webMethods and I need to call myapplication from within a java class created in webMethods.
    I know I have to extend my application class within the webMethods class but I do not understand how to pass the parameters.
    What would the syntax look like?
    Thanks in advance!

    why do you want to call the second class by its main method ??
    Why not have another static method with a meaningfull name and well defined parameters ?
    main is used by the jvm as an entry point in your app. it is not really meant for two java applications to communicate with each other but main and the code is not really readable.
    Have a look at his sample
    double myBalance = Account.getBalance(myAccountId);
    here Account is a class with a static method getBalance which return the balance of the account id you passed.
    and now see this one, here Account has a main method which is implemented to call getBalance.
    String[] args = new String[1];
    args[0] = myAccountId;
    Account.main(args);
    the problem with the code above is
    main doesn't return anything so calling it does do much good. two the code is highly unreadable because no one know what does the main do... unlike the sample before this one where the function name getBalance clearly told what is the function doing without any additional comments.
    hope this helps.... let me know if you need any additional help.
    regards,
    Abhishek.

  • Can EJB's be called from within JSP pages?

    Hi,
    (This is a general question, not necessarily related to OAS in any way...)
    I have read/heard conflicting reports pertaining to calling EJBs from within JSP pages.
    Can anyone tell me if it's possible to reference an EJB session bean from a JSP page? Can anyone point me to some documentation on the topic?
    Any help would be appreciated. Thanks!
    David Christopher
    [email protected]

    Hi,
    Check the following code: http://www.jguru.com/jguru/faq/view.jsp?EID=5314 for ejb example.
    -Ruchi
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Davidc:
    Hi,
    (This is a general question, not necessarily related to OAS in any way...)
    I have read/heard conflicting reports pertaining to calling EJBs from within JSP pages.
    Can anyone tell me if it's possible to reference an EJB session bean from a JSP page? Can anyone point me to some documentation on the topic?
    Any help would be appreciated. Thanks!
    David Christopher
    [email protected]<HR></BLOCKQUOTE>
    null

  • In Captivate 7, how can I call another action from within an action?

    I have a conditional action called FakeSuccessRewind. Now I need to call another function called ShowGrayBalloons02 from within its Else statement, but I couldn't find something like "Execute Advanced Action." Can anybody share some tips here? Thanks!
    Below are screenshots of my two actions:
    1) FakeSuccessRewind (if/else). Here I need to call the 2nd action from the Else statement, underneath the statement Go to the next slide.
    2) ShowGrayBalloons02. Note this function has five seperate runs when the variable is decrementing from 5-1.
    Thanks a lot!
    Melissa

    You can't, you need to add the other action into the first one.

  • ORA-14551 Call to a proc that performs INSERT from within a FUNCTION

    Anyone,
    I have written a number of functions that serve to convert an old_value to a new_value. But there are some times when the conversion fails. I wish to log those exceptions into a table and move on. I undertand FUNCTIONS are not to insert data but that is why I created a PROC and want to be able to call it from within the FUNCTIONs.
    Is there any way to get around the ORA-14551 error?
    Here is what I have:
    CREATE OR REPLACE FUNCTION MAXIMO.fcn_get_worktype
      ( worktype_IN IN varchar2,
        siteid_IN IN varchar2)
      RETURN  varchar2 IS
      var_worktype varchar2(5);
    BEGIN
         IF siteid_IN IN ('ML','OK','BE') THEN
            BEGIN
                 SELECT NVL(NEW_WTYPE,NULL)
                INTO var_worktype
                 FROM MAXIMO.MAX411_WBK_WORKTYPE$
                 WHERE OLD_WTYPE = worktype_IN;
            EXCEPTION
                WHEN NO_DATA_FOUND THEN
                    MAXIMO.SP_CONVERSION_EXCEPTION('WORKTYPE', 'WORKTYPE', worktype_IN, siteid_IN);
                    var_worktype := 'XX';
                     RETURN var_worktype;
            END;
        END IF;
        RETURN var_worktype ;
    END;And here is my PROC:
    CREATE OR REPLACE PROCEDURE MAXIMO.sp_conversion_exception (table_IN IN VARCHAR2, column_IN IN VARCHAR2, value_IN IN VARCHAR2, tab_ID IN VARCHAR2)
    IS
    BEGIN
        INSERT INTO MAXIMO.MAX411_CONVERSION_EXCEPTIONS
             ( TABLE_NAME,
             COLUMN_NAME,
             VALUE ,
              TAB_ID)
        VALUES
             ( table_IN,
             column_IN,
             value_IN,
              tab_ID );
        EXCEPTION
            /* If value was already recorded then do not record again, Key is on all three columns */
            WHEN DUP_VAL_ON_INDEX
                THEN
                    NULL;
        COMMIT;
    END;Can anyone shed any light on how I can stop getting:
    ERROR at line 1:
    ORA-14551: cannot perform a DML operation inside a query
    ORA-06512: at "MAXIMO.SP_CONVERSION_EXCEPTION", line 5
    ORA-06512: at "MAXIMO.FCN_GET_WORKTYPE", line 16
    ORA-01403: no data found
    ORA-06512: at "MAXIMO.LOAD_PM", line 181
    ORA-06512: at line 1
    Thanks in advance for any help I can get...
    Miller

    You need a PRAGMA AUTONOMOUS_TRANSACTION in your exception procedure, eg:
    CREATE OR REPLACE PROCEDURE MAXIMO.sp_conversion_exception (table_IN IN VARCHAR2, column_IN IN VARCHAR2, value_IN IN VARCHAR2, tab_ID IN VARCHAR2)
    IS
      PRAGMA AUTONOMOUS_TRANSACTION
    BEGIN
      ...

Maybe you are looking for

  • How do I delete an old e-mail account from my Apple ID?

    When I purchased my iPad, I registered with an old y-mail account and a backup e-mail to my girlfriend's e-mail address, Now I have a g-mail account and need to delete the y-mail account and change the backup e-mail account. I cannot find information

  • How to hide watermark when viewing in acrobat 8 standard

    Hi, 2 of my colleagues (also having same versions of acrobat) manage to open a pdf file without the watermark showing. I have been googling around and found that there is an option to set. To specify when the watermark appears, select or deselect Sho

  • The iPod Nano Replacement Recall

    Does the iPod Nano have to be under a warranty to get the replacement? Apple has already shipped the box to my house? Thanks

  • Timestamp differs between AQ table and Java application

    We are having the folllowing situation: A message is enqueued from a database trigger using DBMS_AQ.ENQUEUE. A message driven bean dequeues this message immediately. The message is an instance of oracle.jms.AQjmsTextMessage. I need to determine the t

  • Running the client using "java"

    Hi, This is the error I get jeevak@scooby(75)%!8 java -classpath ./dist/hello-client.jar hello.HelloClient jeevak Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Stub I looked up jaxrpc-api.jar and it includes this class and