I cannot see XMLType table in sql*plus
Hi,
Although I have wokred extensively with Oracle, I am new to Oracle XMLdb. My problem is I cannot see the XMLType tables created under my schema. I can see the tables when I do a select from user_xml_tables. But if I do a 'desc' or 'select from', I get ORA-04043 or ORA-00942. I can desc an XMLType table owned by xdb. I am using Oralce 10g. Please provide a solution asap as a customer is waiting on this.
Thanks,
Jayati Ray
Raghu !!
GREAT!!!
It was a BUG in Oracle sql developer, I installed the new version v3.0, It WORKS like a CHARM.
Thanks a million for your help!!!
Cheers
Tony
Similar Messages
-
Apex 4.0 - Can see view data in SQL*Plus but no data in Object Browser
Hi There,
I have just started using Apex 4.o and migrated some apps. I have an issue with a report, but see the same issue with Object browser, which is easier to describe.
I have a view:
create or replace view V_PLJ_USERDEF_CODES (
CODE_SET_ID,
CODE_SET_CODE,
CODE_SET_DESC,
CODE_ID,
CODE_SYS_CODE,
CODE_VALUE,
CODE_DESC,
DISPLAY_SEQ,
DISPLAY_FLAG,
LANGUAGE_CODE) as
select CS.CODE_SET_ID,
CS.CODE_SET_CODE,
CS.CODE_SET_DESC,
C.CODE_ID,
C.CODE_SYS_CODE,
C.CODE_VALUE,
C.CODE_DESC,
C.DISPLAY_SEQ,
C.DISPLAY_FLAG,
C.LANGUAGE_CODE
from PLJ_CODES C,
PLJ_CODE_SETS CS
where C.CODE_SET_ID = CS.CODE_SET_ID
and CS.CODE_SET_TYPE_CODE = SYS_CONTEXT('PLJUMPSTART','C_USERDEF_CODE_SET');This returns data in SQL*Plus, but no data in Object Browser OR report region based on this view.
Workspace parses in the same schema as tested in SQL*Plus.
If, in report, I swap out view, and use underlying table - no problem.
Any ideas -
thanks
PHi all,
Thanks for getting back so promptly.
It just seems weird to me, as tables are just fine, but not views.
In the underlying schema:
SQL> sho user
USER is "ICSREPORTING"
SQL> select count(*) from plj_codes;
COUNT(*)
107
SQL> select count(*) from v_plj_userdef_codes;
COUNT(*)
29And in the APEX schema
SQL> sho user
USER is "APEX_040000"
SQL> select count(*) from icsreporting.plj_codes;
select count(*) from icsreporting.plj_codes
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select count(*) from icsreporting.v_plj_userdef_codes;
select count(*) from icsreporting.v_plj_userdef_codes
ERROR at line 1:
ORA-00942: table or view does not exist
SQL>However, in SQL browser, I can see the data in PLJ_CODES but in V_PLJ_USERDEF_CODES, just the message "This view has no data". Indeed, it is like this for all views.
I even explicitly granted access to APEX_040000 but no good.
In fact, I would like to know more about how Apex gets access to do DML against the underlying parsing schema(s).
This is a little frustrating though. It worked just fine in lots of apps in version 2.1 to 3.2
Am I missing something
paul
p.s I knew there would be a question about the context, but I had already checked that. :)
Edited by: PJ on Nov 19, 2010 4:09 AM -
DISPLAY UNDEFINE TABLES IN SQL PLUS
i am using Oracle 10g
for last 1 week i seen unrecognized table names in my user while i issue following command
SQL > select * from tab;
table name like ......BIN$ and many other characters after it...
i cannot drop that table also
from DBA studio above table can't view but from SQL PLUS it display as table
what i have to do to drop such tables ? please give adviceThese are recyclebin tables. A normal 'drop table' command puts a table into the recyclebin, you can get it back through 'flashback drop' command. Use 'purge user_recyclebin' to delete the tables finally.
Werner -
How to see Chinese data using SQL Plus?
Hi,
Is it possible to see the Chinese character string saved in the database by using English version Sql Plus? The following data is set up in the table NLS_DATABASE_PARAMETERS in my oracle database. I'm really appreciated if anybody could help me.
Thanks,
Suwei Ma
[email protected]
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
PARAMETER VALUE
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_NCHAR_CHARACTERSET UTF8
NLS_RDBMS_VERSION 8.1.7.4.1Thanks for your repley. I don't think I need to change NLS_CHARACTERSET setup because I can load Chinese data into the database and also can see the data by running Chinese tool like NJStar Communicator. Therefore, I probably need to change the session level parameters, but not sure.
-
Cannot view the tables in SQL developer
Hi everybody,
I just installed SQL developer and connected to my oracle DB but I am not able to see the tables..I can execute though any SQL statements...
I thought of installing Oracle Client but nothig changed... what could be the reason ???What do you get by running:
with tabs as (
select t.*, rownum rn -- not merge
from sys.all_tables t
where owner = :SCHEMA
), objs as (
select o.*, rownum rn -- not merge
from sys.all_objects o
where owner = :SCHEMA
AND O.OBJECT_TYPE = 'TABLE'
AND O.GENERATED = 'N'
AND O.OBJECT_NAME NOT IN (SELECT OBJECT_NAME FROM RECYCLEBIN)
AND O.OBJECT_NAME NOT IN (SELECT MVIEW_NAME FROM SYS.ALL_MVIEWS WHERE :SCHEMA = OWNER)
AND O.OBJECT_NAME NOT IN (SELECT QUEUE_TABLE from all_queue_tables WHERE :SCHEMA = OWNER)
AND not ( object_name like 'AQ$_%_G'
or object_name like 'AQ$_%_H'
or object_name like 'AQ$_%_I'
or object_name like 'AQ$_%_S'
or object_name like 'AQ$_%_T' )
AND ( user = :SCHEMA or not object_name like 'BIN$%' ) -- user != :SCHEMA --> object_name not like 'BIN$%'
-- RECYCLEBIN is USER_RECYCLEBIN!
) select * from (
SELECT o.OBJECT_NAME, o.OBJECT_ID ,'' short_name, t.partitioned,t.iot_type, o.OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME
FROM OBJS O , tabs t
WHERE o.object_name = t.table_name
union all
SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME short_NAME,
t.partitioned,t.iot_type, SYN.TABLE_OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME
FROM sys.all_objects O, sys.user_synonyms syn,sys.all_tables t
WHERE syn.table_owner = o.owner
and syn.TABLE_NAME = o.object_NAME
and o.object_name = t.table_name
and :INCLUDE_SYNS = 1
and :SCHEMA = USER
This is the underlying query in the latest version 1.5.4 with update 2. So if that works, just install that version. If not, use it to investigate where it fails.
Regards,
K. -
Cannot See Database Tables in BI Discoverer Admin
Hello All -
My organization recently upgraded to Discoverer 10g from Discoverer 4i. In 10g the EUL is called BIEUL and in 4i it was called V9EUL. During the upgrade, all the Business Areas belonging to V9EUL in 4i were assigned to BIEUL in 10g. I'm not sure how our DBA accomplished this part of the upgrade.
When I'm logged into BI Discoverer Admin (version 10.1.2.00.00) I am unable to see the database tables in order to create folders from them. For instance, today I want to create a brand new Business Area so I click on File...New to start the Load Wizard then I click on "Create a new business area" then I specify to load the meta-data from the on-line dictionary and click the "Next"button. In the next window (Load Wizard: Step 2) I can see all the available users as I expect so I check the user I want and click 'Next".
Here's the point where the problem arises. In the window "Load Wizard: Step 3" I see the user I chose in the "Available" list on the left, but when I click on + to see the tables owned by the user it does not expand and I cannot go any further.
I experienced the same thing when I try to add a "New Folder from Database" to an already-existing Business Area.
Many Thanks in Advance,
PatrickAt first it sounds like it's a simple matter as the EUL owner not having the rights to see the tables / views pointed to by the EUL (grants).
However, the part about the DBA where you say all BAs belonging to V9EUL in 4i wre assigned to BIEUL in 10g, I hope the DBA didn't do anything fancy. All the EUL manager should have to do is fire up the new version of Disco Admin 10g and it will see that the existing EUL is a version 4 one and will ask if you want to upgrade. Saying yes, you will get an entirely new EUL, tables, etc. created pointing to the same database tables / views as your still existing v4 EUL is.
So you'll have 2 EULs - a v4 one and a v10 one as it's not a destructive upgrade.
Is it possible the DBA hacked something? - or just a grants problem to the new EUL owner?
Russ -
Cannot connect to database using SQL*Plus
Hi, I have Oracle 10g XE installed in my labtop and I cannot connect using SQL*Plus.
I can connect using the broser User Interface though, which I was able to do after doing the following procedure to change the password of the sys account:
- open a command prompt
- - type sqlplus
- On the “Enter user-name” line, type /as sysdba
- On the SQL> prompt, type alter user sys identified by NewPassword;
But the thing is that even though I am able to connect using sys/NewPassword from my browser UI, I dont get the same result when doing it using the SQL prompt.
What I am trying to do is this:
SQL> connect sys/NewPassword
Then I get first a warming saying that I need to use either sysdba or sysoper to connect to the system account, but neither of those work.
Can anyone advice me on this matter?
Thanks in advanceThanks for that.
I run the command to list the usernames on the database and I got SYS and SYSTEM in the list. But again, when I try to use SYS with a password that I know is working because I can access it through the browser UI, it doesnt work. It seems like this sys is different to the sys I used in the UI.
I dont know if I am explaining myself correclty... In the Browser UI I use sys, and a password and I get connected to the sys account. However, if I try to use the same sys.password combination from my sqlplus prompt, I get error messages
Does this make sense at all? -
hai friends.,
i created a java database pgm using jdbc:odbc connectivity, that creates a table in the database and i inserted some records in that table. how can i view those table and records in the sql plus. what commands are used to view those table
regards.,
sekarHi sekar,
Interesting, you're able to do a 'CREATE TABLE bla...' but are not familiar with 'SELECT'? I would suggest to read some basic stuff about SQL statements. What will you do when the next task is: "Hey, I need a pgm to change these values in the table!"?
Regards,
Guido -
Populating table using SQL*Plus
Hi,
I am trying to populate my destination table from the source using SQL*Plus. I keep get error message. The source table has 6 columns and the destination table has 11 columns. Data_type are different in both table. The following is my script and the output of the script:
insert into bim_expense_element
(select table_type_id, table_code_desc,
table_value_4, table_value_6,
table_description_1 | | table_description_2
from edim_expense_element)
SQL> /
insert into bim_expense_element
ERROR at line 1:
ORA-00947: not enough values
Please let me know what I did wrong. Thanks.
EstherHi Esther,
You need to tell to Oracle what columns to fill in your insert like this:
insert into bim_expense_element(bim_type_id, bim_code_desc, bim_table_value4, bim_table_value6, bim_description)
select table_type_id, table_code_desc,
table_value_4, table_value_6,
table_description_1 | | table_description_2
from edim_expense_element
If the fields aren't of the same type you'll need to convert.
null -
Cant's See the Table Of SQL Server Using UD Connect
Dear Experts,
I meet a problem. I connect using UD connect. In t_code=RSA1->inforsource->Extr->Create BW Data source With UD Connect.
I can select well in 'RFC Destination'&'UD Connect Sourc', But in the popu menu of 'UD Connect Source Obj.', I can't see the table name . It display the object like 'Tables'\'Views'.
I do not know what's the problem. Can any body tell me?
wait your help.
Thanks in advance.
ShangFuHi,
Pls check the data type in your mapping file and data type in table. It might be mismatched.
thanks -
Please give the query to find out primary key in table in Sql plus
Dear friends,
Please give me the query to find out the primary key in Sql plus.hi
SQL> DESC user_constraints
Name
OWNER
CONSTRAINT_NAME
CONSTRAINT_TYPE
TABLE_NAME
SEARCH_CONDITION
R_OWNER
R_CONSTRAINT_NAME
DELETE_RULE
STATUS
DEFERRABLE
DEFERRED
VALIDATED
GENERATED
BAD
RELY
LAST_CHANGE
INDEX_OWNER
INDEX_NAME
INVALID
VIEW_RELATED
SQL> SELECT constraint_name,table_name,r_constraint_name,status
2 FROM user_constraints WHERE constraint_type='P';
CONSTRAINT_NAME TABLE_NAME R_CONSTRAINT_NAME STATUS
SYS_C003141 CUSTOMERS ENABLED
PK_DEPT DEPT ENABLED
SYS_C003139 SALESREPS ENABLEDKhurram -
SQL*PLUS help to query tables
Is it possible to query tables of other users from a dba account?
My problem is that when i connect to sqlplus using:
sqlplus system/manager@mymachine
I can only see my tables... I cannot see the tables of other users of the same database... What is the correct syntax of doing it? (Is there a good newbie doc about sqlplus?)Yes.
select owner, table_name from dba_tables;
(for example)
OWNER TABLE_NAME
XYZ123 MYTABLE
desc XYZ123.MYTABLE;
select * from xyz123.mytable;
If you get tired of prefixing the table name with the owner, you can do the following:
alter session set current_schema=xyz123;
select * from mytable; -
How to delete an .xml file from xmltype table?
Hi expert,
I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
I have inserted 3 .xml files into an xmltype table: DOCUMENT
SQL> SELECT OBJECT_VALUE FROM document;
OBJECT_VALUE
<?xml version="1.0" encoding="WINDOWS-1252"?>
<?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
<document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc
ation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" classCode="DOC">
<id root="5ca4e3cb-7298-4948-8cc2-58e71ad32694"/>
<code code="51725-0" c
<?xml version="1.0" encoding="WINDOWS-1252"?>
<?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
<document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc
ation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" classCode="DOC">
<id root="03d6a2cd-fdda-4fe1-865d-da0db9212f34"/>
<code code="51725-0" c
<?xml version="1.0" encoding="WINDOWS-1252"?>
<?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
<document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc
ation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" classCode="DOC">
<id root="09ff06d6-8b85-43dd-b5cc-e22d00f02bd0"/>
<code code="51725-0" c
I tried to delete one xml file which with id root="03d6a2cd-fdda-4fe1-865d-da0db9212f34'
delete from DOCUMENT
where xmlexists('$p/document/id[@root="03d6a2cd-fdda-4fe1-865d-da0db9212f34"]'PASSING OBJECT_VALUE AS "p");
but failed.
Is there any expert can help?
Thanks a lot!
Cow
Edited by: Cow on Mar 11, 2011 7:02 PMHi,
Namespace issue.
You have to declare it in the XQuery prolog :
DELETE FROM document
WHERE XMLExists( 'declare default element namespace "urn:hl7-org:v3"; (::)
$p/document/id[@root=$root_value]'
passing object_value as "p",
'03d6a2cd-fdda-4fe1-865d-da0db9212f34' as "root_value" )
; -
Which two are attributes of /SQL*Plus? (Choose two)
A. /SQL*Plus commands cannot be abbreviated.
B. /SQL*Plus commands are accesses from a browser.
C. /SQL*Plus commands are used to manipulate data in tables.
D. /SQL*Plus commands manipulate table definitions in the database.
E. /SQL*Plus is the Oracle proprietary interface for executing SQL statements.What's "/SQL*Plus"? Did you mean iSQL*Plus? If so, maybe you could add,
F. iSQL*Plus no longer exists in 11g -
How to view /SAPAPO/ tables using SQL Studio question
Hi,
This is for Livecache 7.4 on AIX.
I have installed a SQL Studio 7.6. When I logged using SUPERDBA/admin, I can only see tables owned by SUPERDBA, SYS, and DOMAIN.
I cannot see any tables owned by SAP<LC Name>. I want to see details about table e.g. /SAPAPO/ORDKEY, which is owed by SAP<LC Name>.
Is it possible to see it using SQL Studio?
Please let me know if anybody has any idea about it.
Regards.
Sume.Hello Sume,
If you would like to see details about table e.g. /SAPAPO/ORDKEY.
=>
Did you check the owner of this table?
=> You could check, for example, in LC10 -> liveCache:Monitoring
-> Problem Analysis -> Tables/Views/Synonyms ->
Database Object Schema SAPLCT
Name of Database Object *
< execute >
& review if the table /SAPAPO/ORDKEY is listed.
=> If the table is listed, you should be able to run the select statement as SAPLCT user on this table.
If you are sure that you was using the SAPLCT user, please
Check if this user has application tables:
< May be the password was changed from the default sap for the
Standard liveCache user, you should know it. >
dbmcli -d LCT -u control,control
dbmcli on LCT>sql_connect SAPLCT,sap
dbmcli on LCT> sql_execute select * from users
dbmcli on LCT> sql_execute select * from users
< I would like to see what DBA users you have in liveCche &
when the SAPLCT user was created. >
dbmcli on LCT>sql_execute select tablename from tables where owner='SAPLCT'
< If the SAPLCT is the owner of the liveCche application tables,
and the table /SAPAPO/ORDKEY will be listed. >
dbmcli on LCT> sql_execute select * from tables where owner='SAPLCT'
dbmcli on LCT> sql_execute select count(*) from "SAPLCT"."/SAPAPO/ORDKEY"
< to get number of the entries in the table with owner - SAPLCT >
dbmcli on LCT>exit
You could also to check what user did you set for the LCA connection.
And run //om16 transaction in the liveCache relevant client on the system
to see the entries in the /sapapo/ordkey & /sapapo/ordmap in liveCache in this client.
Question: What details you need about table /SAPAPO/ORDKEY?
Do you have problems on your system?
Thank you and best regards, Natlia Khlopina
Maybe you are looking for
-
Hi...I have made an application that has a JTable with listeners on. When you press a cell the information in the cell appears in the Jlist. When you first run the program you see the JTable and the empty JList. We have set a preferredSize on the JLi
-
7" to 10" inches monitor suggestion (must be nice!)
Hi there, I plan to buy a Mac Mini as a media center but would like to know if small and nice monitors exist on the market? I found the Philips Digital Picture Frame quite nice but it could not be use as a monitor. Any idea? Should be in the range 7"
-
Qtwebengine's, 'filepicker' doesn't work.
Hi. I am just asking for Can anyone confirm and vote this? https://bugreports.qt.io/browse/QTBUG-46314 EDIT: I am asking one more:) Are any of you able to play local multimedia files via "WebEngineView"? Eg. ### test.qml ### import QtQuick 2.4
-
HT204088 I have a duplicate charge from an album I already downloaded
I have a duplicate charge from an album I already downloaded- M3NWZNN882 for $9.99 Please credit Also I did not authorize (or receive) M3NWZV3ZZX for $8.91 Please credit. Thanks, Joy <Personal information Edited by Host>
-
[Solved] Dualcore Macbook using only one cpu
Hello, I have a dual core macbook running Arch, default installation with default kernel (64bit). I just noticed that I only have one cpu running, even when I do some cpu-intensive work. Here is the output of /proc/cpuinfo: └─■ cat /proc/cpuinfo proc