Can't retrieve data dictionary items in 8.0.5 DB from Powerbuilder

Hello all,
I'm using Powerbuilder 7.0 in an actual project.
The database is Oracle 8.0.5.1.0 for Linux (Distribution is SuSE 6.0)
There's some strange behaviour which prevents developing with the database:
- Connected as user system in Powerbuilder. No problems during connect. Trace activated.
- Appears grapical table list. When trying to retrieve column attributes of selected table Powerbuilder hangs. The grants on the selected dictionary views have been checked and user system has been granted role dba.
These are the traced statements Only the last one doesn't work - doesn't come back with a result.
WORKS: SELECT OWNER, TABLE_NAME, TABLE_TYPE
FROM SYS.ALL_CATALOG WHERE OWNER <> 'SYS'
AND TABLE_TYPE IN ('TABLE','VIEW') (0 MilliSeconds)
WORKS: SELECT S.OWNER, S.SYNONYM_NAME
FROM SYS.ALL_SYNONYMS S, SYS.ALL_OBJECTS O
WHERE (S.TABLE_OWNER <> 'SYS'
AND O.OBJECT_NAME = S.TABLE_NAME
AND O.OWNER = S.TABLE_OWNER
AND O.OBJECT_TYPE IN ('VIEW','TABLE'))
UNION SELECT Q.OWNER, Q.SYNONYM_NAME
FROM SYS.ALL_SYNONYMS Q
WHERE (Q.TABLE_OWNER <> 'SYS'
AND Q.DB_LINK IS NOT NULL) (0 MilliSeconds) (5518 MilliSeconds)
COLUMNS INFORMATION: TABLE=ac OWNER=geco2
WORKS: SELECT COLUMN_NAME, COLUMN_ID, DATA_TYPE_OWNER, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE,
NULLABLE, DATA_DEFAULT
FROM SYS.ALL_TAB_COLUMNS
WHERE TABLE_NAME = 'AC'
AND OWNER = 'GECO2'
ORDER BY COLUMN_ID (0 MilliSeconds) (981 MilliSeconds)
WORKS: SELECT INDEX_NAME, UNIQUENESS
FROM SYS.ALL_INDEXES
WHERE TABLE_OWNER = 'GECO2'
AND TABLE_NAME = 'AC' (0 MilliSeconds)
WORKS: SELECT COLUMN_NAME, COLUMN_POSITION
FROM SYS.ALL_IND_COLUMNS
WHERE INDEX_NAME = 'GECO_ACC_MAIS_ID'
AND TABLE_NAME = 'AC'
AND TABLE_OWNER = 'GECO2' (0 MilliSeconds)
(29c0020): PRIMARY KEY RETRIEVE:
APPLICATION HANGS: SELECT SYS.ALL_CONS_COLUMNS.COLUMN_NAME, SYS.ALL_CONSTRAINTS.CONSTRAINT_NAME
FROM SYS.ALL_CONSTRAINTS,SYS.ALL_CONS_COLUMNS
WHERE SYS.ALL_CONSTRAINTS.CONSTRAINT_TYPE ='P'
AND SYS.ALL_CONSTRAINTS.TABLE_NAME = 'AC'
AND SYS.ALL_CONSTRAINTS.OWNER = 'GECO2'
AND SYS.ALL_CONSTRAINTS.CONSTRAINT_NAME = SYS.ALL_CONS_COLUMNS.CONSTRAINT_NAME
AND SYS.ALL_CONSTRAINTS.TABLE_NAME = SYS.ALL_CONS_COLUMNS.TABLE_NAME
AND SYS.ALL_CONSTRAINTS.OWNER = SYS.ALL_CONS_COLUMNS.OWNER
ORDER BY SYS.ALL_CONSTRAINTS.CONSTRAINT_NAME,SYS.ALL_CONS_COLUMNS.POSITION (0 MilliSeconds)
I've rerun CATALOG.SQL and CATPROC.SQL; I've installed an 8.0.5-Database under NT and had no problem.
A collegue working with the Java IDE Forti and connecting with JDBC has a very similar problem.
At the moment the project can't go on because of this problem.
Any hint would be welcome
Thanks
Juergen
null

Hi all, thx for your reply, i have found where is my error :)
In dbSelectUniqueRow() method,
//put the attr value into arrayList                               
for(int j=1; j<=fieldList.size(); j++) {                                       
columnValues.add((String)rs.getObject(j));
  }i shouldn't put all the value into the arrayList, instead i should put in the primary key,
Then in client side, I can cast it to remoteInterface. After that, i can retrieve the value in client using
Staff s = (Staff)home.FindByName("XXX");

Similar Messages

  • HT4623 Can I retrieve data lost during update?

    Can I retrieve data tha was deleted during an update?

    What data?
    You should have made sure that everything was on your computer before any update.

  • How can I retrieve data on a time machine if I have forgotten the password?

    How can I retrieve data on a time machine if I have forgotten the password?

    There are so many passwords.. which one do you mean?
    TC password or disk password in the TC.. no problem.. soft reset.
    Or recover the password.. via the Tesserax method.
    https://discussions.apple.com/docs/DOC-3372
    If you encrypted the backup in TM and have forgotten that password you are doomed.. there is no way to recover it I know of.. there is a warning.. very clear.. do not forget the password.
    http://pondini.org/TM/31.html
    Pink box at the bottom.

  • How can i retrieve music, videos & films i have on my itunes from an old pc that no longer works?

    How can i retrieve music, videos & films i have on my itunes from an old pc that no longer works?
    I'm going to see if Currys can remove all info from my hard drive and hopefully recover my itunes, but if this does not work is there another way to get them?

    The computer not working in no way means the drive is inaccessible.
    Place the drive in an external enclosure.
    Use the backup of the computer to restore the data to the new computer.
    Downloading past purchases from iTunes

  • Can not retrieve data in Crystal Report

    Hi,
    I have a problem to load data from <i><b>Crystal Report</b></i> in an SBO form with the ActiveX DI object : the Crystal Report Viewer message display : <b><i>'Failed to retrieve data from the database. Details [Database Vendor Code:208]'</i></b>
    It seems do not change the name of database in SQL Crystal Report query : My SQL query in Crystal Report file is a generic query : it must run with all custom database with the same datatable ; so the database name in FROM  clause must be change with the SetLogonInfo : but it do not run !
    Have you an idea ?
    Francis
    Here my code :
    Public Class frm_CRViewer
    ' Adding References of project : CRAXDRT and CrystalActiveXReportViewerLib11
    Private WithEvents MRO_CRV As
    CrystalActiveXReportViewerLib11.CrystalActiveXReportViewer
    Public Sub New()
    Dim msa_Form As SAPbouiCOM.Form
    Dim dsa_ActiveX As SAPbouiCOM.ActiveX ' Item <ActiveX> from form XML
    dsa_ActiveX = msa_Form.Items.Item("axCRV").Specific()
    dsa_ActiveX.ClassID = "CrystalReports11.ActiveXReportViewer.1"
    MRO_CRV = dsa_ActiveX.Object
    ' Create the crystal application
    Dim dob_ReportApp As New CRAXDRT.Application
    ' Open the report
    Dim dob_Report As New CRAXDRT.Report
    dob_Report = dob_ReportApp.OpenReport("c:MyTest.rpt")
    ' Defined to log on to the data source, and change the database name in FROM clause
    Dim dob_Table As CRAXDRT.DatabaseTable
    For Each dob_Table In dob_Report.Database.Tables
         dob_Table.SetLogOnInfo("192.168.2.10", "AeroOneDemo", "sa", "45dfrfg5")
    Next
    ' The report have a parameter in the sql query
    dob_Report.ParameterFields.Item(1).DiscreteOrRangeKind = CRAXDRT.CRDiscreteOrRangeKind.crDiscreteValue
    dob_Report.ParameterFields.Item(1).AddCurrentValue("15")
    ' Display the report in SBO form
    Title = pst_ReportName
    MRO_CRV.ReportSource = dob_Report
    MRO_CRV.ViewReport()
    End Sub
    End Class

    Try these ...
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2002650&sliceId=&dialogID=7002531&stateId=1%200%207004328">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2002650&sliceId=&dialogID=7002531&stateId=1%200%207004328</a>
    or
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2000957&sliceId=&dialogID=7002728&stateId=1%200%207004460">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2000957&sliceId=&dialogID=7002728&stateId=1%200%207004460</a>
    or
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001075&sliceId=&dialogID=7002728&stateId=1%200%207004460">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001075&sliceId=&dialogID=7002728&stateId=1%200%207004460</a>
    or
    [url=http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2003637&sliceId=&dialogID=7002728&stateId=1%200%207004460]http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2003637&sliceId=&dialogID=7002728&stateId=1%200%207004460[/url]

  • Can not retrieve data source status

    I have 3 DPS (6.3) running fine with 3 (6.2) DS downstream, running fine as well, on RHAS 4 U4 .
    I don't understand why the DPS console always report it can not retrieve the data sources status. I checked the DS access logs, and I see each DPS
    default monitoring request (on the "" DN) every 30 seconds, which returns one entry, and no obvious error in any DPS or DS error log .
    Any idea ?

    Hi,
    it looks like a a known problem to me that may appear in the following situation:
    In somes cases, the proxy and the DSCC (console) uses different hostnames: For instance, the proxy may be registered to the admin framework as myhost.sun.com and the proxy itself may use only myhost. Operation status is exposed by the proxy as an LDAP entry with dn cn=myhost,.....,cn=monitor. When there is a naming mismatch, the console search for cn=myhost.sun.com,...., cn=monitor and can't find the entry, so the status is unknown.
    Don't know if you are in this situation but it might worth checking this.
    Hope this helps
    -Sylvain

  • Can I retrieve data from a restored iPhone?

    I restored my iPhone remotely because I thought it was stolen - then found it. A security service in my town claims to be able to retrieve data for $100. Is that possible?

    He says he has software that can do this kind of thing. Does it matter if he has my mac account? I don't backup on cloud - backup on iTunes.

  • Can we retrieve Data of Single Dimension in multiplecolumns in Excel Add-in

    Hi All,
    I have strange requirement of having single dimension in two columns while retrieving data from essbase using Excel Add-In.
    Logically I feel it is not possible however we are looking if there is any possibilty of work arround for this requirement.
    Whenevr i am trying to retrieve data using a macro on a single column we are able to successfully do it. But in case of multiple columns we are unable to do it.Do let us know if there is any work arround or alternative method to handle this requirement.
    Regards,
    Krishna

    Not completely sure what you mean by "single dimension in two columns". Normally this request comes down to wanting to show multiple levels from a dimension, e.g...
    _______________"Sales"
    "100" "100-10" 12345
    "100" "100-20" 34567...which is definitely not possible.
    If you just mean data like this (with multiple columns from the same dimension)...
    ________"100-10"   "100-20"
    "Sales"  12345      34567...then that should work fine.
    If you could post a sample of what you'd like to see, it would be easier to answer.

  • Can I retrieve data from my iPhone 4 hard drive without the SIM card?

    Can I retreive data from my iPhone 4 hard drive without the sim?

    There is no hard drive in an iPhone, it is all solid state memory. If the phone is working you can always copy content from it. If it is not you will need to restore and activate it, and that requires a SIM card.

  • Can you retrieve data when stuck in recovery mode

    Curious if you can reset an iPod touch 4th gen to get data backed up before you restore?  Daughters iPod is stuck on the screen that shows the USB cable and the iTunes logo.  When I plug it in, iTunes detects it & only gives me the option to restore to factory settings and that I will lose the content.  2yrs worth of video and pics of her baby sister is going to be hard to lose if no other way around...

    See if one of these program will kick it out of recovery mode:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Next, restore the the iPod and see if you can get any data off the restored iPod
    via How to perform iPad recovery for photos, videos
      Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official

  • I uninstalled itunes from pc, reinstalled and lost my photos.  can i retrieve them or are they lost, i uninstalled itunes from pc, reinstalled and lost my photos.  can i retrieve them or are they lost

    can i retrieve my photos after uninstalling and then reinstalling itunes back to my pc. iphone and ipad lost photos after sync

    I suggest you download a program called "Media Widget" from bootstrapdevelopment.com, it's free but you can only do 5 songs at a time unless you want to pay for it. I've used it plenty of times, best of luck!

  • Can I retrieve data from a multiple select query?

    I recently have been able to consolidate many queries into one large one, or into large compound queries. I found an instance where I am using a select query in a for loop that may execute up to 400 times. I tried building a huge compound query, and using DB Tools Execute Query vi, followed by the DB Tools Fetch Recordset Data vi. The query executes at the database without an error, but the Fetch Recordset Data vi only returns the first instance. Is there a way to retrieve all the data without having to send up to 400 separate select queries?

    Sorry I didn't replt earlier, I was on vacation. The query I am using is to check serial numbers, and determine if they are all valid. The programs purpose is to define a serial number to a pre-existing part number. Our company makes inclinometers and accelerometers, and this entire series of LabVIEW programs is designed to automate the calibration and testing of these units. The part number definitions can contain 3 or 4 hundred parameters, so the database itself consistes of 44 tables with potentially several hundred columns per table. It is designed to not only provide definitions to every part number, but also to store all potential raw unit data to be calculated and formed into a report at any time. The logistics of getting that much data in and out of the database have forced me to do things more effeciently. The actual query in question is to take each serial number either manually entered, or automatically picked, and see if they already exist with the part number they are being defined as. If there are any duplicates, then the program will alert the operator that serial numbers x, y, and z for instance have already been asigned as the part number in question. Currently I run a simple query once for each serial number. This works, but there may be 200 serial numbers assigned. Also the serial numbers can contain upper or lower case letters. By making all the serial number letters into capitals, then into lower case, it could mean up to 400 individual queries going out over the LAN. This is a bandwidth hog, and time consuming. I started experimenting with compound queries. The actual query used is below.
    SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000005';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000006';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000007';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000008';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000009'
    When I execute this query, SQL Server 2000 has no problem with it, but the DB Tools Fetch Recordset Data vi only returns the first match. I think my answer may lie with OR statements. Rather than sending what amounts to potentially dozens of individual queries, I should be able to chain them into one query with a lot of OR statements. As long as the OR statement is not an exclusive OR statement, I think it should work. I haven't tried it yet, and it may take some time to get the syntax right. The query is built in a for loop with the number of iterations equal to the number of serial numbers being defined. Once I get this working I will alter it to include both upper and lower case letters that can be included in the query. Any suggestiona of how the query should be structured would be most helpful, or another way to achieve what I am trying to accomplish.
    SciManStev

  • How can i retrieve data from a macbook pro that has the flashing folder with an ? mark in it, to a brand new iMac

    I want to do a data recovery of my 15" MBP that has the flashing folder w/ ? mark in it, to an iMac 21.4"; how can i go about that?

    DJSMACC wrote:
    How do I go about removing the internal drive and mount it to an external enclosure @Linc Davis??? Sorry that I'm not too hip with all the technology lingo & etc?
    You'll have to watch the video and buy a few tools to extract the driive.
    http://eshop.macsales.com/installvideos/
    Then use something like this to connect to the other Mac or PC with MacDrive installed.
    http://eshop.macsales.com/item/Newer%20Technology/U3NVSPATA/
    You also can get the same adapter elsewhere online for as low as $12 I've seen.
    Likely it's a USB 2,1 which your Mac's can only accept USB 2,1 anyway, no need to pay more for a USB 3 unless you want too.
    No compensation for site or product mention
    You likely should be having a professional or Apple tech attempt to bypass the firmware password if you forgot it, it's the best way to go about things.
    Just because the Mac has a spinning wheel gray screen at boot doesn't mean it's ruined, you just need to bypass the firmware password and then from there fix the machine's cause for not booting, which is likely a software issue from a third party kernel extension file.
    Step by Step to fix your Mac
    You should know that opening the iMac could likely ruin it and will ruin any warranty or AppleCare, and if it's a Early 2011 model or later you can't replace the hard drive yourself as Apple has proprietary software installed on the drive that needs to "talk" to OS X to control the fans speeds.
    Good Luck.

  • How can I retrieve data from one table to another automatic in SQL?

    Hi, everione,
    I am having a big problem, trying to create datebase.
    I have 3 tables: SUPERAVATAR, MASTERAVATAR, MEGAAVATAR.
    - SuperAvatars are heroes in an online role playing gaming. They have an ID, ‘superavatarID’ which contain an UNIQUE NUMBER NOT NULL PRIMARY KEY to identify them.
    A wisdom – ‘trickster’,’conjuror’,’magician’, etc..
    A current owner… who is the user or player of the game and has that Super Avatar– we associate the link to USERID to know the person.
    SuperAvatars can be fathers or mothers of Mega Avatars.
    -MegaAvatars are the children of SuperAvatars…. They also have an ID UNIQUE NUMBER NOT NULL PRIMARY KEY to indentify them.
    A magic power – it can be a ‘Leader’ or ‘Sheep’…
    A ‘parent’ – parent is the number identifying to know to who Super Avatar belongs.
    e.g.
    SUPERAVAT WISD CURRENTOWNER FATHEROF MOTHEROF
    1 Thick 3 1
    2 Mentally Ch. 11 3
    3 Smart 9 2
    4 Genius 16 4
    5 Thick 19
    MEGAAVATARID MAGICPOWER PARENT
    1 MAGICIAN 1
    2 WIZARD 3
    3 SORCERER 2
    4 MAGICIAN 4
    -We see that MEGAAVATAR 1 has a magic power as Magician and his father is ‘1’. ‘1’ identifies the SUPERAVATAR.
    We see SUPERAVATARID…. who has the number ‘1’? the first in the row… who has wisdom – thick and he belongs to the USER with ID number 3.
    -We see MEGAAVATARID… we choose the number 2…. His magic power is as WIZARD… and his father is the number 3.
    We see SUPERAVATARID now… we look up the SuperavatarID 3…. We can see he has a wisdom – GENIUS… who belongs to the USERID 16 and he is father of MEGAAVATAR number 2.
    The list can carry on and never stop.
    I have this Problems:
    We create in this example 3 tables: Users, SuperAvatar, MegaAvatar
    SQL
    CREATE TABLE users(userID NUMBER CONSTRAINT pk_user PRIMARY KEY,email VARCHAR2(50) NOT NULL UNIQUE,password VARCHAR2(15) NOT NULL UNIQUE,subscription CHAR(8) NOT NULL CHECK (subscription IN('ACTIVE' , 'INACTIVE' ) ) );
    CREATE TABLE superavatar(superavatarID NUMBER CONSTRAINT pk_superavatar PRIMARY KEY, wisdom VARCHAR2(19) NOT NULL CHECK (wisdom IN ('THICK', 'MENTALLY CHALLENGED', 'AWAKE', 'SMART', 'GENIUS')), currentOwner NUMBER NOT NULL, fatherOf NUMBER,motherOf NUMBER);
    CREATE TABLE megaavatar (megaavatarID NUMBER CONSTRAINT pk_megaavatar PRIMARY KEY, magicPower VARCHAR2(12) NOT NULL CHECK (magicPower IN('TRICKSTER','CONJUROR','MAGICIAN','WIZARD','SORCERER')), parent NUMBER);
    Now, the 3 tables are created…..
    What happen when we try to insert values to this table?
    In this case we insert to User Table some examples:
    INSERT INTO users VALUES('3','[email protected]','great78','ACTIVE');
    INSERT INTO users VALUES('9','[email protected]','chrisandra)','ACTIVE');
    Now, we insert to SuperAvatar some examples;
    INSERT INTO superavatar VALUES('1','THICK','3','1','');
    INSERT INTO superavatar VALUES('3','SMART','9','3','');
    |
    |
    ‘9’ is the UserID that we already insert to the User table
    What’s the problem?
    We have to insert manually the data from USERID to CURRENTOWNER as we didn’t match or link CURRENTOWNER from SUPERAVATAR Table to USERID from USER Table with a SQL CODE.
    What happen if we have thousands of USERS that they register to this game…? We will never know to how belongs that SUPERAVATAR but if someone do it manually can spend a year.
    I am trying to fix this problem …. I add in SUPERAVATAR TABLE ‘CHECK’ in currentOwner..
    SQL> CREATE TABLE superavatar
    (superavatarID NUMBER CONSTRAINT pk_superavatar PRIMARY KEY, wisdom VARCHAR2(19) NOT NULL CHECK (wisdom IN ('THICK', 'MENTALLY CHALLENGED', 'AWAKE', 'SMART', 'GENIUS')),
    currentOwner NUMBER NOT NULL CHECK (currentOwner IN(SELECT userID FROM users)),
    fatherOf NUMBER,
    motherOf NUMBER);
    ERROR:
    ORA-02251: subquery not allowed here
    It doesn’t work.
    Please HELP, I have exam tomorrow
    thank you
    Desy

    Hallo,
    you can use trigger on table USER and fill the userid in AVATAR.currentowner,
    but i don't understand, how you join these tables ?
    Which user id must come in which column currentowner ?
    Design problem ?
    Regards
    Dmytro

  • How can I retrieve my purchased items from itunes?

    I had to make a new user account in my computer but I had accidentally deleted all my purchased music and videos. I know I can get it back by going to the purchased list on the itunes store, but somehow nothing that I have purchased or downloaded appears there, Not even the Apps I have recently downloaded from my iTouch. I have retrieved my music before so I don't know if there is a limit to how many times you can retrieve your music. Can someone please help me?

    If you are in the USA and using the latest iTunes you can use the iCloud beta. See:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for