Sql within Ms Word

How i can use database wizard in ms word to write and execuate any select statment or script within the word ?I tried to do it on the computer where the database is reside , but each time I try it gives me the following error :
Oracle error Occured - but error message could not be retrieved from Oracle
I'm using oracle 9i on windows xp professional.
I would appreciate any help

http://asktom.oracle.com/pls/ask/f?p=4950:8:2945016798642244149::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:439619916584

Similar Messages

  • Dynamic SQL within a SQL Query ?

    is there any possibility to do like this ?
    SELECT table_name, XXXXXXXX('SELECT Count(*) FROM '||table_name) tot_rows
      FROM dba_tables
    WHERE owner = 'SCOTT';or any other trick to run dynamic SQL within the SQL Query?
    Hoping....that it should be.
    Regards,
    Orapdev

    One small disadvantage: it is executing 202 SQL statements: 3 "user SQL statements" (the one above and the 2 "select count(*)..."), and 199 internal ones ...How did you get to those numbers?
    I just traced this statement and found completely different results:
    TKPROF: Release 10.2.0.3.0 - Production on Tue Jul 10 12:12:10 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Trace file: diesl10r2_ora_5440.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    declare  cursor NlsParamsCursor is    SELECT * FROM
      nls_session_parameters;begin  SELECT Nvl(Lengthb(Chr(65536)),
      Nvl(Lengthb(Chr(256)), 1))    INTO :CharLength FROM dual;  for NlsRecord in
      NlsParamsCursor loop    if NlsRecord.parameter = 'NLS_DATE_LANGUAGE' then  
         :NlsDateLanguage := NlsRecord.value;    elsif NlsRecord.parameter =
      'NLS_DATE_FORMAT' then      :NlsDateFormat := NlsRecord.value;    elsif
      NlsRecord.parameter = 'NLS_NUMERIC_CHARACTERS' then     
      :NlsNumericCharacters := NlsRecord.value;    elsif NlsRecord.parameter =
      'NLS_TIMESTAMP_FORMAT' then      :NlsTimeStampFormat := NlsRecord.value;   
      elsif NlsRecord.parameter = 'NLS_TIMESTAMP_TZ_FORMAT' then     
      :NlsTimeStampTZFormat := NlsRecord.value;    end if;  end loop;end;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50 
    SELECT NVL(LENGTHB(CHR(65536)), NVL(LENGTHB(CHR(256)), 1))
    FROM
    DUAL
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.01       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           1
    total        3      0.01       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50     (recursive depth: 1)
    Rows     Row Source Operation
          1  FAST DUAL  (cr=0 pr=0 pw=0 time=7 us)
    SELECT *
    FROM
    NLS_SESSION_PARAMETERS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0          17
    total        3      0.00       0.00          0          0          0          17
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50     (recursive depth: 1)
    Rows     Row Source Operation
         17  FIXED TABLE FULL X$NLS_PARAMETERS (cr=0 pr=0 pw=0 time=124 us)
    select PARAMETER,VALUE
    from
    nls_session_parameters where PARAMETER in('NLS_NUMERIC_CHARACTERS',
      'NLS_DATE_FORMAT','NLS_CURRENCY')
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           3
    total        3      0.00       0.00          0          0          0           3
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50 
    Rows     Row Source Operation
          3  FIXED TABLE FULL X$NLS_PARAMETERS (cr=0 pr=0 pw=0 time=57 us)
    select to_char(9,'9C')
    from
    dual
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           1
    total        3      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50 
    Rows     Row Source Operation
          1  FAST DUAL  (cr=0 pr=0 pw=0 time=2 us)
    SELECT table_name,
           DBMS_XMLGEN.getxmltype ('select count(*) c from ' || table_name).EXTRACT
                                                                    ('//text').getstringval
                                                                          () tot
      FROM dba_tables
    WHERE table_name IN ('EMP', 'DEPT') AND owner = 'SCOTT'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.01       0.02          0         48          0           2
    total        3      0.01       0.02          0         48          0           2
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50 
    Rows     Row Source Operation
          2  HASH JOIN  (cr=42 pr=0 pw=0 time=2952 us)
          2   MERGE JOIN CARTESIAN (cr=42 pr=0 pw=0 time=1206 us)
          2    NESTED LOOPS OUTER (cr=42 pr=0 pw=0 time=478 us)
          2     NESTED LOOPS OUTER (cr=36 pr=0 pw=0 time=421 us)
          2      NESTED LOOPS OUTER (cr=30 pr=0 pw=0 time=379 us)
          2       NESTED LOOPS OUTER (cr=30 pr=0 pw=0 time=365 us)
          2        NESTED LOOPS  (cr=22 pr=0 pw=0 time=312 us)
          2         NESTED LOOPS  (cr=16 pr=0 pw=0 time=272 us)
          2          NESTED LOOPS  (cr=8 pr=0 pw=0 time=172 us)
          1           TABLE ACCESS BY INDEX ROWID USER$ (cr=2 pr=0 pw=0 time=56 us)
          1            INDEX UNIQUE SCAN I_USER1 (cr=1 pr=0 pw=0 time=30 us)(object id 44)
          2           INLIST ITERATOR  (cr=6 pr=0 pw=0 time=111 us)
          2            TABLE ACCESS BY INDEX ROWID OBJ$ (cr=6 pr=0 pw=0 time=87 us)
          2             INDEX RANGE SCAN I_OBJ2 (cr=4 pr=0 pw=0 time=54 us)(object id 37)
          2          TABLE ACCESS CLUSTER TAB$ (cr=8 pr=0 pw=0 time=98 us)
          2           INDEX UNIQUE SCAN I_OBJ# (cr=4 pr=0 pw=0 time=26 us)(object id 3)
          2         TABLE ACCESS CLUSTER TS$ (cr=6 pr=0 pw=0 time=39 us)
          2          INDEX UNIQUE SCAN I_TS# (cr=2 pr=0 pw=0 time=13 us)(object id 7)
          2        TABLE ACCESS CLUSTER SEG$ (cr=8 pr=0 pw=0 time=37 us)
          2         INDEX UNIQUE SCAN I_FILE#_BLOCK# (cr=4 pr=0 pw=0 time=21 us)(object id 9)
          0       INDEX UNIQUE SCAN I_OBJ1 (cr=0 pr=0 pw=0 time=4 us)(object id 36)
          2      TABLE ACCESS BY INDEX ROWID OBJ$ (cr=6 pr=0 pw=0 time=33 us)
          2       INDEX UNIQUE SCAN I_OBJ1 (cr=4 pr=0 pw=0 time=23 us)(object id 36)
          2     TABLE ACCESS CLUSTER USER$ (cr=6 pr=0 pw=0 time=28 us)
          2      INDEX UNIQUE SCAN I_USER# (cr=2 pr=0 pw=0 time=12 us)(object id 11)
          2    BUFFER SORT (cr=0 pr=0 pw=0 time=716 us)
          1     FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=661 us)
       1436   FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=1449 us)
    select count(*) c
    from
    EMP
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          1          0           1
    total        4      0.00       0.00          0          1          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50     (recursive depth: 1)
    Rows     Row Source Operation
          1  SORT AGGREGATE (cr=1 pr=0 pw=0 time=96 us)
         14   INDEX FULL SCAN EMP_IDX (cr=1 pr=0 pw=0 time=46 us)(object id 61191)
    select metadata
    from
    kopm$  where name='DB_FDO'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          2          0           1
    total        3      0.00       0.00          0          2          0           1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS   (recursive depth: 1)
    Rows     Row Source Operation
          1  TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=42 us)
          1   INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=22 us)(object id 365)
    select count(*) c
    from
    DEPT
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          1          0           1
    total        4      0.00       0.00          0          1          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 50     (recursive depth: 1)
    ALTER SESSION SET sql_trace=FALSE
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
    Parsing user id: 50 
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        5      0.00       0.00          0          0          0           0
    Execute      5      0.00       0.00          0          0          0           1
    Fetch        3      0.01       0.02          0         48          0           6
    total       13      0.01       0.03          0         48          0           7
    Misses in library cache during parse: 0
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        5      0.00       0.00          0          0          0           0
    Execute      5      0.01       0.00          0          0          0           0
    Fetch        7      0.00       0.00          0          4          0          21
    total       17      0.01       0.00          0          4          0          21
    Misses in library cache during parse: 0
        9  user  SQL statements in session.
        1  internal SQL statements in session.
       10  SQL statements in session.
    Trace file: diesl10r2_ora_5440.trc
    Trace file compatibility: 10.01.00
    Sort options: default
           1  session in tracefile.
           9  user  SQL statements in trace file.
           1  internal SQL statements in trace file.
          10  SQL statements in trace file.
          10  unique SQL statements in trace file.
         132  lines in trace file.
           0  elapsed seconds in trace file.I only see a ratio of 1:9 for user- to internal SQL statements?
    michaels>  select * from v$version
    BANNER                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production                         
    CORE     10.2.0.3.0     Production                                     
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production        
    NLSRTL Version 10.2.0.3.0 - Production  

  • 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

  • How do I search for adjacent words within MS WORD?

    I am new to Mac. I need to search WITHIN MS Word Documents for specific phrases. Example: Jim is a good boy. Spotlight will find all documents containing those 5 words, but not those 5 words together. There has to be a way...
    MacBook   Mac OS X (10.4.8)  

    First, thanks, I did. My naive take is that new plug-ins wouldn't be required.
    Second - I don't know about Google finding every document, but it returns some pretty impressive results, and fast (so long as Google indexes the page in the first place of course). You've never used this feature? I do it all the time when I want to see if there's an internet version of a document I have in my hand.
    Here's a random example the feature in action - I went to boingboing.net and snagged a phrase from the October archives: "You should give props to BabyStyle.com for the blue octopus costume". Here's the link to the October page:
    http://boingboing.net/200610_01archive.html
    and here's the link to the successful Google search:
    http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&client=firefox-a &rls=org.mozilla%3Aen-US%3Aofficial&q=%22Youshould+give+props+to+BabyStyle.com+for+the+blue+octopuscostume%22&btnG=Search
    Pretty impressive - the internet is a big place!
    Thirdly, there was a program written for OS 9 called "Gopher" that did just that. It was pretty handy. Come to think of it, it may have been written for System 8! It vanished from publication before there was even a web for it to be distributed on, and when I switched to OS X, it wasn't working well under 9. Of course outside of the personal computing realm, there are well known database programs like Lexis and Nexis that perform exact phrase searches on their databases, which are pretty extensive (at least as large as most document collections on most personal computers, I'd venture). In fact if you've never used those programs they have some pretty powerful functions, like searching for any occurrence of a word within so many words of a second target word.
    I'll give you a couple of examples of where phrase searching might come in handy. Suppose I have a collection of e-mails or correspondence (I guess we all do) and I want to find the one in which I facetiously repeated the punchline to the chicken joke - "to get to the other side". (You have to grant I might have a reason for wanting this particular e-mail, okay?) Of course if I search on "get", "other" and "side" I may wind up with four or five hundred results; those are pretty common words. That doesn't help me much. A phrase search,however, will yield, I dunno, three or four documents. Bingo.
    Or, here. I work in an office creating documents all day long. I've been working in this office, on PCs, for 16 years. That's a lot of documents. I may create three dozen or more on a single subject. The documents are all on the same subject and all pretty much have the same words in them. Maybe I've got a single paragraph printed from one of them and want to find the source document. A simple word search will yield back 80% of the lot. A phrase search typed in from the paragraph is almost certainly unique, however, and will give me my document in a blink.
    (Um, I'd have to move all the documents to a Macintosh to do this, but you get the point I hope.)
    Spotlight says it finds "anything anywhere" on your computer. I would use a feature like this *all the time*. Why shouldn't it be able to do it?

  • Within a word, can I "delete" as opposed to "backspace"?

    Within a word, can I "delete" as opposed to "backspace"?
    When I would like to delete a letter that is to the LEFT of the cursor, I use the "backspace" key.
    When I would like to delete a letter that is to the RIGHT of the cursor...how do I do that?

    You can't do it with a key. You have to use the little magnifier thing to get the cursor to the left of the letter. Put your finger on the word, and hold it for a moment, and small magnifying glass appears. You can the roll your finger to get the cursor to move.

  • Reading the word under the cursor within MS Word

    I saw a very interesting article yesterday.
    Reading the word under the cursor
    And confirmed it today. Yes, it works fine with me.
    But, it works only with Notepad.
    It, even, does not work with Visual Studio itself.
    (Of course not with Notepad++ too.)
    Now. Simple asking.
    Can you show me how to do it within MS Word using VSTO ?
    I am with Word 2010.
    Regards

    Hi Using_Word_Everydai,
    >>You do not need to consider any kind of method within VBA (as your explanations) or do not calculate the location of caret (as your explanations). <<
    I would explian more detail about VBA and VSTO. Based on my understanding, we can automate Word application using Word object model in VBA and Word PIAs in VSTO solution. And there is tiny difference on the API, that the reaseon I provide a VBA demo.
    >>Reading the word under the cursor within MS Word<<
    Here is the code that for your reference to achieve the goal in VSTO solution(application level add-in):
    MessageBox.Show(Globals.ThisAddIn.Application.Selection.Range.Words[1].Text);
    >>
    Now, I have three steps.
    1. Move to there.
    2. Press "Alt_key"
    3. Click Mouse button.<<
    I am still not able to under the secnario you are handling exactly. Based on my understanding, if we want to grab the wrod in the document, we need to move the mouse click the word in the document then we can call the code above to grabe the Word under the
    cursor.
    For example, we can custom the ribbon of Word and add a custom button. Then click the word we need to grab then click the custom button to get the word.
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    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.

  • Unable to click on excel object within a word 2010 document

    Whenever a user tries to click an Excel Object within a Word 2010 document, the error "Microsoft Word can't start the application required to open this object. An error occured and this feature  is no longer functioning properly. Would you
    like to repair this feature now?". Clicking YES runs a repair on Office 2010, which does not resolve the issue. Clicking No gets you the following prompt: "The program used to create this object is Excel. That program is either not installed on your
    computer or it is not responding. To edit this object, install Excel or ensure that any dialog boxes in Excel are closed." 
    Operating System: Windows 7, Office Version: 2010
    I've tried the following to resolve the issue, without success:
    Running the Office Repair as suggested in the prompt
    There are no open dialog boxes in Excel
    There are no COM add-ins or Excel add-ins active in Excel
    Starting Word in Safe Mode (clicking CTRL on open) does not resolve the issue.
    "Ignore other applications that use Dynamic Data Exchange (DDE)" is unchecked in Excel.
    I am able to edit this document with no problem on a machine running Windows 7 with Office 2007 or even office 2013.

    Hi,
    Do you see this problem if you start Windows in Safe Mode? You might want to have a try and verify result, some outside application may be preventing the OLE server/client connection.
    Have you ever checked your anti virus? Try to disable it and check again.
    Please make sure to install any updates to your system or Office products. It's important to make it up to date.
    Try to go to your task manager to kill any excel process and then try again.
    I have seen a case that user finally fixed this with a clean uninstallation and reinstallation, if issue presists with all above steps, you might want to do a completely reinstallation and then try again.
    Thanks,

  • See different perf. when run SQL within Weblogic or Pure JDBC call

    Hi,
    I am using weblogic 6.1sp2 with Weblogic JDriver for Oralce.When
    I run the SQL within weblogic app server through stateless session bean,
    it took 30s. But if I use Pure JDBC with same driver, it only took 10s,
    it also took only 10s for SQLPlus.
    Does anybody have the same problem? Is there any setting between
    Weblogic App Server and Oracle DB?
    Frank

    Hi,
    I am using weblogic 6.1sp2 with Weblogic JDriver for Oralce.When
    I run the SQL within weblogic app server through stateless session bean,
    it took 30s. But if I use Pure JDBC with same driver, it only took 10s,
    it also took only 10s for SQLPlus.
    Does anybody have the same problem? Is there any setting between
    Weblogic App Server and Oracle DB?
    Frank

  • 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

  • SQL Loader - MS Word data

    Hi All,
    I want to load MS word data using SQL Loader into my tables. It loads fine except for certain features like bullets and numbering gets loaded as junk characters.
    My sql loader version is Release 8.0.6.3.0.
    Please help. Hope I am clear. If not please let me know

    My DB is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    My OS is AIX 3
    My sql loader version is Release 8.0.6.3.0.
    Table
    CREATE TABLE DUMPTABLE
    Case_ID VARCHAR2(30) NOT NULL,
    A_Status VARCHAR2(30) ,
    Emp_Name VARCHAR2(100) ,
    Emp_no VARCHAR2(30) ,
    Counter_sign_mgr_comments VARCHAR2(1000) ,
    C_KPI1_Name VARCHAR2(1000)
    Sample data
    79717^ST 1 PEND EMP 1^Test1^1025^Risk Management ^Account Monitoring • Proactively monitor • Early identification • Write Call Memos
    79718^ST 1 PEND EMP 2^Test2^1026^Leading Courageously ^Account Monitoring • Need To Improve • ensure compliance • Write Call Memos
    Control file
    OPTIONS (BINDSIZE=160782, SKIP=1)
    LOAD DATA
    INFILE '/home/apsprod/DUMP.txt'
    BADFILE '/home/apsprod/REJECTEDRECORDS.txt'
    REPLACE
    INTO TABLE DUMPTABLE WHEN (Case_ID != '99')
    fields terminated by "^" optionally enclosed by '"' trailing nullcols
    Case_ID,
    A_Status,
    Emp_Name,
    Emp_no,
    Counter_sign_mgr_comments char(1000),
    KPI1_Name char(1000)
    With the above, the data gets loaded but when I select from the table, all the characters are loaded fine but all the bullets in the data is as some junk character
    I also tried giving CHARACTERSET as WE8ISO8859P1 and also as UTF8 in the control file
    Please help. Hope I am clear. If not please let me know

  • SQL within PL/SQL block

    This question sound funny. I just want to make sure this rule. In Oracle database before 10g, we can only use DML and transaction control code within PL/SQL block. We can not use DDL or other control languages within PL/SQL block. How about 10g? can I use DDL in PL/SQL block in 10g?
    I have created a procedure to drop all materialized view. Drop object is DDL. I used a piece of code like this:
    v_sql_stmt1 := 'DROP MATERIALIZED VIEW'||v_schema||'.'||x.mview_name;
    EXECUTE IMMEDIATE v_sql_stmt1;
    The procedure was compiled successfully. However, when I run this SP, it generate ORA-00905 missing keyword error on EXECUTE IMMEDIATE statement part. Is this caused by missing keyword in sql statement or DROP as DDL can not be used in PL/SQL block? If it is first one, what is the keyword for DROP MATERIALIZED VIEW statement?

    The versions of Oracle that run on this planet have been able to do DDL in PL/SQL for quite some time now. The DBAs who blasted off into space with you and worked in a vacuum the past however many years you feel you've been limited by this need to be replaced or re-introduced to Oracle.
    For what it's worth, the error looks like you're missing a space.

  • Implementing java.sql within PersonalJava

    I'm writing a simple application to implement within the PersonalJava JVM. The application has to use a number of classes out of the java.sql package. When I try to run my application, I get NoClassDefFoundError messages for any code that references java.sql. This makes sense after reading a number of posts and references on Sun's site about java.sql being an optional package of the PersonalJava Application Environment. However, I have not found anywhere on Sun's site or any other site about where to download such a package. Has anyone come across this before and found a decent solution? Thanks in advance.

    Did you check your CLASSPATH variable when you compile. I believe that you need the file classes12.zip. When I installed oracle it came with the class files that I was looking for. I have installed 8.1.7 and in the oracle package, you get this zip files with a bunch of classes. If you are using another database, you might want to get their classes. The zip files has the java.sql that I was looking for.
    Hope this helps.

  • Pulling SQL fields in Word Letters

    Hi All,
    We have a customised real estate application which maintains all our customer information and sql server is used as the database. There is a feature in the app to send bulk letters to all the customers. The customer name and other unique details are pulled
    from the sql database.  The letters are created using a software called report writer from softvelocity. Problem is that it take a lot of time to create the reports using reportwriter and the formating is always a mess.
    Question1: Can we create these letters in Microsoft Word and get word to pull the respective details from the SQL database. If we are sending the letters to 300 customers, Word should create 300 letters as we have to attach the letters to the customer record.
    Question2: If not word what other tools are available that allows the creation of letters linking with sql database
    Regards,
    Jaggy

    Hi jaggy99,
    As per my understanding, you have a customized application which maintains all customers’ information and database is SQL Server. You can use the application to send letters to all customers, but it takes a long time to write the letters and the content
    is a mess, so you want to solve the problem by other methods.
    SQL Server Reporting Services includes a complete set of tools for you to create, manage, and deliver reports, and APIs that enable developers to integrate or extend data and report processing in custom applications. We can achieve your goal by creating
    a report and configure data-driven subscription for it. For more information, please refer to the following steps:
    Create and deploy a table
    1. Open SSDT(SQL Server Data Tools), on the File menu, point to New to create a new project.
    2. In Solution Explorer, add a new report.
    3. Open the project, in Report Data pane, add a dataset used to retrieve data.
    4. Click and drag the field from dataset into the appropriate box in the tablix.
    5. In Solution Explorer, right-click the project name and click Properties, configure the properties, then click OK.
    6. Right-click the project name and click Deploy.
    Create data-driven subscription
    1. Open Report Manager, and locate the report for which you want to create a data-driven subscription.
    2. Hover over the report, and click the drop-down arrow.
    3. In the drop-down menu, click Manage. This opens the General properties page for the report.
    4. Select the Subscriptions tab, and then click New Data-driven Subscription.
    5. Select the delivery extension and data source for the subscription.
    6. Specify a query that retrieves subscriber data.
    7. Specify delivery extension options.
    8. Specify report parameters for the subscription.
    9. Specify when the subscription is processed, then click Finish to save the configuration.
    Reference:
    Create a Report (Reporting Services)
    Deploying Reports
    How to create Data Driven Subscription in SSRS
    If you have any questions, please feel free to let me know.
    Thanks,
    Wendy Fu

  • Trying to determine the last occurence of a number within a word string.

    Hi All,
    I am trying to find the last occurence of a number within a string. I have had a quick look at the Java Tutorial and know about lastIndexOf and substring. The thing is I have to test for the existance of the numbers 0-9 within a product code that typically looks like this:
    s1_14G12B
    s1_17G1BA
    s2_24GD
    The only part of the above strings that I am interested in is the letter(s) that follow the very last number, so in the case of those codes presented above, I would like to extract the following:
    B
    BA
    D
    I have written some code that performs a similar operation:
    public class FindPriceCode
      private String priceCode;
      private String[] numberValues = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
      public FindPriceCode()
        priceCode = "s2_71G4BA";
        for(int i=0; i<numberValues.length; i++)
          int location = priceCode.lastIndexOf(numberValues);
    System.out.println("Character " + numberValues[i] + " found at position: " + location);
    public static void main(String[] args)
    FindPriceCode myPriceCode = new FindPriceCode();
    ...finding the location of numberValues string within the given example code. I am now at a loss as to how I can determine the location of the last number occurence (moving right to left) and then build a substring from that number. Any help will be greatly appreicated.
    Thanks
    David

    Hello,
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CutNumberTest extends JFrame implements ActionListener {
         private JTextField input= new JTextField(10);
         private JTextArea result=new JTextArea(10,10);
         char[]numbers=new char[]{'0','1','2','3','4','5','6','7','8','9'};
         public CutNumberTest() {
              super("CutNumberTest");
              setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              JButton cutButton = new JButton("cut number");
              cutButton.addActionListener(this);
              JPanel topPanel=new JPanel();
              JLabel label=new JLabel("Please enter price-code:");
              topPanel.add(label);
              topPanel.add(input);
              topPanel.add(cutButton);
              getContentPane().add(topPanel, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(result));
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent e) {
              char[] code=input.getText().toCharArray();          
              int counter=code.length;
              boolean lastNumFound=false;
              while(!lastNumFound && --counter >= 0)
                   lastNumFound=isNumber(code[counter]);
              result.append(lastNumFound ? "result: "+input.getText().substring(counter+1)+"\n" : "No number found!\n");
         private boolean isNumber(char chr){
              boolean isNumber=false;
              int counter=-1;
              while(++counter < numbers.length && !isNumber)
                   isNumber=numbers[counter]==chr;
              return isNumber;
         public static void main(String[] args) {
              new CutNumberTest().setVisible(true);
    }//copy/paste:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CutNumberTest extends JFrame implements ActionListener {
         private JTextField input= new JTextField(10);
         private JTextArea result=new JTextArea(10,10);
         char[]numbers=new char[]{'0','1','2','3','4','5','6','7','8','9'};
         public CutNumberTest() {
              super("CutNumberTest");
              setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              JButton cutButton = new JButton("cut number");
              cutButton.addActionListener(this);
              JPanel topPanel=new JPanel();
              JLabel label=new JLabel("Please enter price-code:");
              topPanel.add(label);
              topPanel.add(input);
              topPanel.add(cutButton);
              getContentPane().add(topPanel, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(result));
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent e) {
              char[] code=input.getText().toCharArray();          
              int counter=code.length;
              boolean lastNumFound=false;
              while(!lastNumFound && --counter >= 0)
                   lastNumFound=isNumber(code[counter]);
              result.append(lastNumFound ? "result: "+input.getText().substring(counter+1)+"\n" : "No number found!\n");
         private boolean isNumber(char chr){
              boolean isNumber=false;
              int counter=-1;
              while(++counter < numbers.length && !isNumber)
                   isNumber=numbers[counter]==chr;
              return isNumber;
         public static void main(String[] args) {
              new CutNumberTest().setVisible(true);
    Regards,
    Tim

  • Links within a word-document

    Hi,
    I have a really frustrating problem in our portal. We´re using SAP NetWeaver Portal 6.0.14.0.0 und KMC 6.0.14.2.0
    We have a Word-Document with several links to other documents anywhere in our system. These links do work.
    But we also have several links to programs on the local PC (e.g. c:programsxyzxyz.exe). The word-document is integrated into a page, but we have the problem, that sometimes (not always!!!!!) the links to the local programs are changed by SAP NetWeaver Portal:
    For example instead of "C:Programsxyzxyz.exe" the link is "http://npwortal.bbb.com:50000/irj/servlet/prt/programs/xyz/xyz.exe"
    Why does the system sometimes replace the correct link with this wrong link. This problem doesn´t appear all the time we update the word-document. Sometimes all links are correct, sometimes after a local edit theres just one link wrong, sometimes all links and so on.
    What could be wrong?
    Thanks for help, we have no idea whats going on there...

    Hi,
    I would be really Really REALLY be surprised if KM would touch the content of Word documents. Chances are that it's Word that is malfunctioning. Try to replace one of the components (such as use IIS or Apache as store, or use OpenOffice instead of MS Office to edit).
    Best regards, Julian

Maybe you are looking for