Table does not exist at dw.insertrow(0)
Hi,
I am trying to update an old PB app.
Background of the basic database structure:
my_data Table:
col1
col2 -- lookup to an_old_table.id
col3 -- newly added as lookup
my_new_lookup Table:
code -- 'linked' to col3 above
description
an_old_lookup table:
id -- 'linked' to my_data.col2
text
I have created a new lookup table in our oracle database, and added an extra column to an existing table this column matches the lookup code and we can pull the full description of the item from there.
I would like to add the new lookup table as a dropdown list in a window of my app.
There is already a dropdown list which does exactly this, displaying an_old_table.text in the dropdown but updating my_table.col2 with the id value.
I have attempted to duplicate this functionality exactly but with data from my_new_lookup to my_data.col3, but am failing somewhere.
I have created a new d_dddw_mynewdropdown, which in the preview window lists all my_new_lookup.description values from the database correctly.
In the datawindow, I added a column control, changed the edit to DropDownDW, making sure the DataWindow is d_dddw_mynewdropdown and display and data columns matched description and code respectively.
When I do a retreive on the datawindow within powerbuilder, with a record from the my_data table a dropdown box appears correctly in the preview window with the value matching the correct lookup description, so it is flowing through col3 > code > description correctly.
The datawindow is embedded into an application window, and this is where I think it is failing... The window has two datawindows on it and part of the open() function does:
If dw_one.Retrieve(ln_id,) > 0 Then
ll_row = dw_one.GetRow()
If dw_one.ShareData (dw_two) <> 1 Then
MessageBox ("Error", "Error in sharing data.")
Else
dw_two.ScrollToRow (ll_row)
End If
Which passes (IE does not display the message box)
It then executes:
dw_one.InsertRow(0)
dw_two.InsertRow(0)
Which is where the application displays an error message which says:
Select Error: ORA-00942: table or view does not exist
I stepped through the code in debug mode and discovered the error message comes from the dw_one.InsertRow(0) line.
If I press ok to the error, the application continues to run, but the value of the dropdown box is my_data.col3 (the 'linking' code, not the full description) and the dropdown when pressed is empty.
I am not sure what I have done wrong.. In powerbuilder itself everything seems to be working and connecting together as it should when I preview the data in the datawindows, but something about the application window has issues.
Has anyone experienced similar things? I do not know where else to look to fix this.
Thanks.
This is correct. The application starts with a log in screen (we have over 80 users) the application then connects to the database using the credentials entered into the login screen.
The table was created under the db admin account.
I have very little Oracle experience. what would be the best way to do it so that all users who have access to the application also have access to this table?
From what I can work out, the application uses the "Other Users" folder under in the database tree in Oracle SQL Developer. The DB admin account is not in the list of users in this folder..
When I use the application and log in using the db admin credentials there is no error! So I just have to work out how to give all the users access to this table?!
is the
alter session set current_schema= <username of table creator>.
a PowerBuilder command that I should run after the users log into the app? or is it an Oracle Query?
Thanks! this is down the right track..
I ran a select * from all_tables query and compared the new table with others that are successfully being used by the application.. as far as I can see, they are exactly the same in terms of OWNER, TABLESPACE_NAME, CLUSTER_NAME, STATUS, BUFFER_POOL... The only thing different is my new table has GLOBAL_STATS = YES where the rest have NO.. not sure if that makes any difference..
The OWNER column is the database admin user for all tables used by the application
I also checked the DBA_TAB_PRIVS table and it has all the same info as the other tables aswell.. not sure where else to look.
Similar Messages
-
Short dump 'Table does not exist in database'
Hello All,
When a report is executing it is going to short dump by saying 'Table does not exist in database'. As per the short dump analysis this issue is happening because of the following Native SQL statement statement :
Program : %_T050N0 (This is a dynamic program generating by SAP )
Form Name : DYN_LIC_SEL_TOT
exec sql performing LOOP_MOVE_WRITE_ISAP.
select single_plate, itm_num, ctry_code, model_lot,
lic_hold_flg, qty into :dcat-lplate, :dcat-matnr,
:dcat-werks, :dcat-charg, :dcat-holdflag,
:dcat-qty from ZLICENSE_R2 where itm_num = :p_matnr and
model_lot = :p_charg
endexec.
As per the customer this issue occurring since they migrated the SAP back-end data base from Oralce to DB6. Here I felt that ZLICENSE_R2 is not migrated from the Oracle to DB6. But as per the BASIS Team, even this table was not maintained in Oracle also. If the table was not maintained in the Oracle, this issue should have been there even before migration also.
Following is the short dump details:
Short text
Table does not exist in database.
What happened?
The table or view name used does not
exist in the database.
The error occurred in the current database connection "DEFAULT".
What can you do?
Check the spelling of the table names in your report.
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_NATIVE_SQL_ERROR', was not
caught in
procedure "DYN_LIC_SEL_TOT" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Triggering SQL statement: "select single_plate, itm_num, ctry_code, model_lot,
lic_hold_flg, qty from ZLICENSE_R2 where itm_num = ? and model_lot = ? "
Database error code: "-204"
Could you please let me know what might be the reason for this issue.
Many Thanks in Advance.Transaction SE11, input ZLICENSE_R2 for table name, and display the table. Did the table display? If not, that is the main problem.
If the table displays, go to menu item Utilities -> Database Object -> Database Utility
In the resulting screen, under the "Status" fields, you should see text "Exists in the database." If you don't, then the table exists in the dictionary, but doesn't exist in the database system. Click the "Create database table" button and then you should be able to run the program.
You may need basis team's help to carryout some of these actions. -
Hello, I have 2 instances, into production environment, instance A and instance B. Into instance A I have a dblink to instance B...
The problem appear when I want to see the indexes of a table of instance B from instance A, to do this I press F4 into TOAD over:
owner.table@dblink
and when I click into tab "Indexes", Oracle said me: "The table does not exist", I review the grants, and this is ok, and the table exist in instance B.
One explanation, I have the same environment into testing, and there work perfectly, I have the same dblinks, the same users and the same grants.
Any suggestion to help me.You may want to contact the folks that make TOAD.
My guess is that TOAD is querying the local USER_/ ALL_/ DBA_INDEXES table rather than the USER_/ ALL/ DBA_INDEXES table at the remote server. You could run a client-side SQL trace to see what SQL is being generated to see if the problem is that TOAD is generating the incorrect SQL or whether there is some problem with the database. But I'm not sure how productive that would be since it's not like you could fix the SQL TOAD is submitting. If there is an option in TOAD that changes the behavior here, it's certainly possible that someone here will know it. But TOAD support is probably more likely.
Justin -
Table does not exist for the sys user
Hey Everyone,
I am having a strange problem with 10G 10.2. I keep getting the table does not exist for all the tables when I am logged in as sys. It is strange because I can query the same tables being logged in as a regular user say 'scott'. I can't figure out what the problem is since it could not be privileges because the user is sys. Is there something I am missing here. Any advice would be welcome.
Thanks,
SarangYeah i am using the query....
SELECT * FORM SCOTT.EMP
It is a little wierd. I did a full database restore yesterday night. I dont know if that has anything to do with this. Will have to take a look at the logs. -
I am using Livecycle 8.2 running on JBOSS. I get this error in server log
2013-07-25 13:48:33,809 ERROR [com.adobe.idp.config.AdobePreferenceFactory] UserM:GENERIC_ERROR: [Thread Hashcode: 5001776] Problem with system root| [com.adobe.idp.storeprovider.jdbc.DBStoreFactory] errorCode:12293 errorCodeHEX:0x3005 message:The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle database.
2013-07-25 13:48:33,809 INFO [STDOUT] java.lang.RuntimeException: The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle database.null
Also not able to login using Administrator password. Assuming above error is the cause. Please any help is appreciated. Thnks.Is this observed on a running server or have you made any changes to LC server or database after which this error is seen?
--Santosh -
Table does not Exist in Unix OS after it has been created In HTML_DB
I created a table in HTML_DB and can see the table fine in my HTML_DB application. However, when I go to the Unix OS and try to look up the database using SQL*Plus, I am getting an error saying the table does not exist. Any help as to why this is happening would be appreciated.
KellyWhen I go to the Unix OS, I then try and search for the table in the exact schema that I used in >HTML_DB.I don't see what the Unix OS has to do with it here...do you mean you're connecting via SQLPlus?
If you're connecting via SQLPlus, which schema are you connecting to? (i.e. are you certain you're connecting to the same schema that the table was created under when you were connected to Application Express). -
Table does not exist in system after DB Connect
Hi Everyone,
I must extract data from a oracle db. I create a source system with DB Connect and it's connect successful.
Later, i create a datasource for that source system. but it show the table does not exist in system. I'm sure the table is correct. why?
Thanks!Check the schema names & ensure it is with the same owner/name as in the DB source table/view. You can also use a simple lookup table which checks table/views in your schema from other standard tables.
-
Native SQL "Table does not exist in database"
Hi Developers,
I'm doing a database connection to an Oracle db and trying to read data using native SQL - I keep getting the runtime error "table does not exist in database" on the statement Fetch Next Cursor. The following is the code snippet (I've commented out the Exec SQL and Fetch Next to make sure I have a connection and I do). HR is a schema in the database and T_Donation is a table in HR.
Data: w1(3),
c1 type cursor.
start-of-selection.
if con_name is initial.
write: 'No connection specified'. "#EC NOTEXT
return.
endif.
try to open the connection and catch the errors (if any)
try.
con_ref = cl_sql_connection=>get_connection( con_name ).
catch cx_sql_exception into sqlerr_ref.
error occured
write:
'Could not open connection', con_name, '.'. "#EC NOTEXT
if sqlerr_ref->unknown_connection = 'X'.
write:
/ con_name, 'is not defined in DBCON'. "#EC NOTEXT
elseif sqlerr_ref->db_error = 'X'.
write:
/ 'sql error', sqlerr_ref->sql_code, 'occured:',
/ sqlerr_ref->sql_message. "#EC NOTEXT
else.
perform get_trace_file using dev_file.
write:
/ 'DBI error', sqlerr_ref->internal_error, 'occured.',
/ 'See trace file for further info:',
icon_read_file as icon hotspot, dev_file. "#EC NOTEXT
endif.
return.
endtry.
connection successfully opened
write:
/ 'Connection', con_name, 'successfully opened.'. "#EC NOTEXT
*- Get the data from MS-SQL Server
EXEC SQL.
open C1 for
SELECT HR.T_DONATION.DN_DONATIONYEAR
FROM HR.T_DONATION
ENDEXEC.
do.
EXEC SQL.
FETCH NEXT C1 into :w1
ENDEXEC.
if sy-subrc = 0.
perform loop_output.
else.
exit.
endif.
enddo.
EXEC SQL.
CLOSE C1
ENDEXEC.
close connection again
con_ref->close( ).
write:
/ 'Connection', con_name, 'closed'. "#EC NOTEXT
end-of-selection.
*& Form LOOP_OUTPUT
Output
form loop_output .
write: /5 w1.
endform. " LOOP_OUTPUT
Thanks for your help.
Jim
Message was edited by:
James BarnesWell my advice is to check the question in the sql tutorial, it will be quicker then getting an answere.
-
create table dytab(x number);
create or replace procedure p_testdytab(p_tab in varchar2)
is
begin
execute immediate ' create table dytab2 as select x from p_tab';
end p_testdytab;
begin
p_testdytab('dytab');
end;
/why the procedure is not replacing parameter p_tab with the table name ? I get table does not exist errorHi,
user650888 wrote:
create table dytab(x number);
create or replace procedure p_testdytab(p_tab in varchar2)
is
begin
execute immediate ' create table dytab2 as select x from p_tab';
end p_testdytab;
begin
p_testdytab('dytab');
end;
/why the procedure is not replacing parameter p_tab with the table name ? I get table does not exist errorAnything inside single-quotes is literally what is written. In this case, p_tab is inside single-quotes, so p_tab doesn't stand for some other value, such as 'dytab'; it literally means p_tab,
If you really must use EXECUTE IMMEDIATE, then don't put the variable name inside the single-quotes.
dynamic_txt := 'create table dytab2 as select x from ' || p_tab;
dbms_output.put_line (dynamic_txt || ' = dynamic_txt');
EXECUTE IMMEDIATE dynamic_txt;Whenever you write dynamic SQL, display it before executing it, at least during testing. That way, you can see exactly what is being executed, which is a huge help when it causes an error.
As Tubby said, creating tables in PL/SQL is usually a very bad idea. Whatever you need to do, Oracle probably has a simpler, more robust way to do it. Say what your business requirements are, and someone will help you find a good way to do what you need. -
Table does not exist odbc -2004
Hi,
I'm updating a UDO in SBO 9. PL11 by GeneralService via DI API
The code worked without problems, but I activated the option LOG from customizing options and get the following error:
"Table does not exist odbc -2004 "
sCmp = AccCommon.Main.Company.GetCompanyService
oGeneralService = sCmp.GetGeneralService(LocalConstants.UDO_Colegiados)
oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
oGeneralData = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)
oGeneralParams.SetProperty(LocalConstants.CAB_Colegiados.cCode, sNumCol)
oGeneralData = oGeneralService.GetByParams(oGeneralParams)
oGeneralData.SetProperty(LocalConstants.CAB_Colegiados.cEstado, LocalConstants.Colegiados.Keys_Estado.cInactivo)
oGeneralService.Update(oGeneralData)
Any Idea?
Thanks!Thanks,
We delete the UDO and returned to generate. We assume that there were changes in the structure that was not reflected.
Without changing the code works
Regards -
'table does not exist' when creating generic datasource
I went to SBIW->Business Content DataSources->Transfer Business Content DataSources-chose "content delta". it said 'comparison bct <-> cust version ' then it counted thru several objects for a few minutes and finished with no warnings.
then I selected each datasource under co-om-cca and activated those with no problems.
problem: now when i try to create came generic datasource using co-om-cca application component i get mssg when saving 'the specified table does not exist'...so now it isn't even letting me create a datasource at all using a standard application component either.
I have been having many problems with creating datasources and using application components and this is why I did the first paragraph because I don't know what else to try.
Please help, thanks.I have answered my own question. I wasn't entering the view/table and it was my own complete oversight.
-
EXP-00011 table does not exist
Hi guru's,
My DB Version: 10.2.0.2.0
OS Version: Solaris 10
While trying to export a table from a schema i am getting error:
exp-00011 table does not exist
when i check the source database i found that table name as 'abc' exists there
but when i log on to schema and try to check the info about the abc table with below mentioned query i got below error:
SQL> select table_name from user_tables where table_name='rtx';
no rows selected
i also checked with table_name='RTX'
i am getting the same error.
Can anyone help me outsorry the table name is rtx
C:\Documents and Settings\Administrator>exp userid=sysadm/rtxprod@rtxprod tables=sysadm.rtx file='E:\rtx.dmp' buffer=1000000 feedback=10000 statistics=none
Export: Release 10.2.0.1.0 - Production on Thu May 10 14:36:34 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options^C
C:\Documents and Settings\Administrator>exp userid=sysadm/rtxprod@rtxprod tables=sysadm.rtx file='E:\rtx.dmp' buffer=1000000 feedback=10000 statistics=none
Export: Release 10.2.0.1.0 - Production on Thu May 10 14:37:05 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)
About to export specified tables via Conventional Path ...
EXP-00011: SYSADM.RTX does not exist
Export terminated successfully with warnings. -
Hi, when i able to import the 0WRKCNT_CATG_TEXT extractor into source system i am getting the above bug Cannot retrieve table metadata - Table does not exist: ODP source <0WRKCNT_CATG_TEXT> does not exist, i have been checked in RSA5 T code to check the object is active or not, its active and its available in ROOSATTR table with enabled mode,but still its showing the error, can anyone help on this ..
Hi Airings,
'ORA-00942: table or view does not exist'
According to the error message, it seems that the migrating table or view does not exist in the database, or SSMA does not have access to it. To troubleshoot the issue, please check the following things.
1. Verify that if the spelling of the table or view name is correct.
2. If the table or view exists but is in a different schema from the current schema where the SQL is executing (in other word, the table doesn’t own by you, but owned by other user), the ORA-00942 error will return too. Resolve this by
explicitly reference the table or view by specifying the schema name (schema_name.table_name).
3. SSMA queries some additional catalog tables that you may not have permission to, please make sure that you grant the account permission to
read sys.mlog$. For more details, please review this similar thread:
Bug in SSMA For Oracle 6.0 for non-dba Oracle user.
Reference:
ORA-00942 Table or View Does Not Exist Oracle Error
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
I M TRYING TO TAKE EXPORT OF A TABLE BUT I M GETTING ERROR THAT TABLE DOES NOT EXISTS BUT ACTUALLY TABLE EXISTS... PLEASE SUGGEST Y I M GETTING THIS ERROR.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> select table_name from user_tables where table_name='CSCNF';
TABLE_NAME
CSCNF
SQL> select object_name,object_type from user_objects where object_name='CSCNF';
OBJECT_NAME OBJECT_TYPE
CSCNF TABLE
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
[oracle@~]$exp musr/musr file=tab.dmp tables=CSCNF
Export: Release 11.2.0.1.0 - Production on Thu Jun 17 16:28:51 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing option
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)
About to export specified tables via Conventional Path ...
EXP-00011: MUSR.CSCNF does not exist
Export terminated successfully with warnings.[oracle@~]$sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 17 16:40:48 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> conn musr/musr
Connected.
SQL> sho user
USER is "musr"
SQL> select table_name from user_tables where table_name='CSCNF'
2 ;
TABLE_NAME
CSCNF
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
[oracle@~]$ -
/BIC/Y______ tables does not exist
Ladies/Gents
I am trying to delete master data from an InfoObject in RSD1. When I try to delete a row I get an error that the /BIC/Y______ table does not exist. I suppose SAP is looking for the time (Y-table)....but the check-box u201Ctexts are time-depu201D is NOT checked for this Info Object?
How can I solve this problem? Thanks!Hello,
Install this note 1110324, I had the same problem and after putting the problem to sap they created that note.
Please assign points,
Diogo.
Maybe you are looking for
-
How to import a page from one workspace to another workspace appication ?
In oracle apex 4.1 version :- I am trying to import one page from a application which is present in one workspace to another application which is present in another workspace. In which way could i import that export page to a workspace? Edited by: 94
-
my iP5 will only play songs purchased formmthe itunes store. all over songs, uploaded from cd's on my laptop and dragged into itunes will no longer play, a red circle with a red square in the middle appears and skips the track. anybody know why Itune
-
ITunes keeps opening by itself and playing music.
My iTunes keeps randomly opening up by itself and playing music. When it happens, I quit the app and it stops for the day, but it will happen again randomly. Like days or weeks later. I don't know why my computer has decided to start doing this recen
-
Hello I read about ejb dynamic reloading in a few places in ias documentation and i have the following quastions: - what will happen if i change deployment descriptors of ejb? - what will happen if i change some other classes like value object classe
-
Only one MRP run for diffrent companies plants
Hi PP expert, my bizness scenario is . there 2 companies code one company code has 2 plant and another comp has 3 plant..only one product is assembling in all plant. suppose finish material X is producing in all company plants but finish materia