Garbage tables in oracle database
Hi,
Is there anyone can tell me whats wrong with my database. I dont know what is actually the problem is in my oracle scott database i got some garbage table name once i try to execute "select table_name from user_tables" command. Here is the output of that sql query.
SQL> select table_name from us
TABLE_NAME
CATEGORY
CMSUSER
BIN$z0xX8EzoTImZ+QowtHKAXQ==$0
BIN$MeMzxCSqR7elgZJtlErZCQ==$0
BIN$pVQJDfURR2CcvD39ovSQjg==$0
BIN$VNlU74WURPeWd/ttf6wmLQ==$0
BIN$DWgeccctTCWdWJiQSp98bw==$0
BIN$kjgqXmwVRru/9klO+AGhEQ==$0
BIN$5oUGRsk2SACYN84B2KcxVA==$0
BIN$YmySQWcrSI2MsDp5J43AaA==$0
T_COMPBOOKING
TABLE_NAME
T_COMPUTER
BIN$2fIY1imJRi2r/1ZfZbXKnA==$0
BIN$wn2OVNNiQcKP8nV7xHRqrQ==$0
BIN$xgjzcC90QZmGOJw6mQK78w==$0
BIN$AEAc1N3gSzqx8Of9kuHTlw==$0
BIN$ZqieT3+3RbSWNiFfTVmGBw==$0
BIN$THw8LJJBSkCasju6e8WC0g==$0
BIN$OHL4q1r/SBmf6LPIxCmrvA==$0
BIN$L+GFDZvMTXS+FI53z/6JOw==$0
BIN$M8Q4CYgNSXu9cbU3MVO0Ww==$0
BIN$tRVUHjNFRsCpzd4w4jUOtA==$0
TABLE_NAME
BIN$eCDMIZraQ4GF6BfO4L4o4Q==$0
BIN$w3BHAefyRsqDyUrZWI8pOg==$0
BIN$gVlUKhrCROme/elxLwruqw==$0
BIN$lb/0xLyZSuiqAtrxX+2n6A==$0
BIN$Gz8OvMDXTrC/ZLDM93nSUg==$0
BIN$cULMUXV8RJGiXnh2Ml+WYA==$0
BIN$Dqclit06RIqfrIRwb8enzA==$0
BIN$SiJFG3FlSZmCK+OJMGVQjQ==$0
BIN$nYXut5odTBSaHIK2Uk2ZEg==$0
ORDERDETAILS
ITEMS
TABLE_NAME
ORDERS
SUPPLIERS
CUSTOMERS
EMPLOYEES
SALGRADE
BONUS
EMP
DEPT
41 rows selected.
what is those bin bla bla i got no idea.
Im useing oracle10g home my OS is winxp and my paths are
C:\Documents and Settings\Hasnain>path
PATH=C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;C:\PROGRA~1\RATIONAL\RATION~1\NU
TCROOT\bin\x11;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt;E:\oracle\product\10
.1.0\Db_1\bin;E:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;E:\oracle\produ
ct\10.1.0\Db_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program Files\SecureCRT;C:\j2sdk1.4.2_05\bin;C:\mys
ql\bin;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearQuest;C:\
Program Files\Rational\Rose\TopLink\;C:\Program Files\Rational\Rational Test;c:\
matlab6p5\bin\win32;C:\MATLAB6p5\bin\win32;c\php;C:\Program Files\SSH Communicat
ions Security\SSH Secure Shell
Please help me i dont know whats wrong with it.
Thanks
Hasnain
How do you define an "unnecessary bin"?
When you are dropping a table, you can specify the PURGE clause to bypass the recycle bin. You can also purge objects from the recycle bin
http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10739/tables.htm#sthref2018
Oracle also maintains a mapping of the recycle bin name to the original table name in USER_ or DBA_RECYCLEBIN
http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10739/tables.htm#i1010757
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
Error while importing tables from oracle database
Hi
I am getting the following error when i am trying to import table from oracle database.
my operating system is windows and my database is oracle.
[nQSError: 16001]ODBC error state: IM004 code:0 message:
[Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
please help me in resolving this issue.
Thanks and Regards,
RajHi Madan,
I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
This is very great full help to me …
Advance thanks for your suggestions.
Regards
Duraga Prasad. -
Problems accessing tables in oracle database with ejb entity bean
I have created a simple server application that uses an entity bean (version 2.0) for an existing table in oracle database, and a session bean that is used as an outside interface for performing operations on that table.
after deploying the server and client application the client attempts to perform an operation with the session bean remote interface it obtained.
The session bean uses a locale interface to communicate with the entity bean, but when it tries to use its methods (create, findByXXX) it always get the following Exception: java.sql.SQLException: ORA-00942: table or view does not exist.
the table of course exists, and the username password I'm using has all the permissions needed for this table.
note - I'm using the Forte enterprise edition 4.0 as developer tool.
I'll be glad to get some help.
Here is the full stack trace of the exception:
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.ejb.EJBException: nested exception is: java.sql.SQLException: ORA-00942: table or view does not exist
javax.ejb.EJBException: nested exception is: java.sql.SQLException: ORA-00942: table or view does not exist
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1674)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:314)
at com.sun.ejb.persistence.SQLEngine.ejb20Finder(SQLEngine.java:226)
at com.sun.ejb.persistence.PartitionImpl.ejbFinder(PartitionImpl.java:736)
at com.cti2.telco.core.ejb.entity.userInfo.UserInfoEJB_PM.ejbFindByEmail(UserInfoEJB_PM.java:393)
at com.cti2.telco.core.ejb.entity.userInfo.UserInfoEJB_PM_LocalHomeImpl.findByEmail(UserInfoEJB_PM_LocalHomeImpl.java:64)
at com.cti2.telco.core.ejb.UserManagerEJB.authenticate(UserManagerEJB.java:77)
at com.cti2.telco.core.ejb.UserManagerEJB.authenticate(UserManagerEJB.java:68)
at com.cti2.telco.core.ejb.UserManagerEJB_EJBLocalObjectImpl.authenticate(UserManagerEJB_EJB
LocalObjectImpl.java:63)
at com.cti2.telco.core.ejb.dispatch.TelcoFacadeEJB.userLogin(TelcoFacadeEJB.java:80)
at com.cti2.telco.core.ejb.dispatch.TelcoFacadeEJB_EJBObjectImpl.userLogin(TelcoFacadeEJB_EJBObjectImpl.java:24)
at com.cti2.telco.core.ejb.dispatch._TelcoFacadeEJB_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:519)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:204)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:112)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:273)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
...Well it seems like the problems has a simple explanation. The Forte assigns a default table name (<entityName>EJBTable) when creating an entity bean from an existsing table in DB (which is not the same as the one it was created from !!!). Also, for reason unknown, when you deploy these entity beans, it doesn't even create the new table under its new name (even if instructed to).
So using the Forte we managed to use successfuly only entity beans that were created "from scretch" (when deployed their tables are created).
Does anyone know how to change the default name the Forte uses, and make it work properly with entity beans created from an existsing table (without going over the xml's) ? -
How to copy sql database tables to oracle database
hii everybody,
i have 50 sql databse tables and i want to copy these tables into oracle database,how can i achive this?.Any help highly appreciated.
thanks.Hi,
You haven't said if this is a one-off copy of the data or if it is comething you want to do on a regular basis.
If it is a one-off move of the data then you could use the SQL*Developer migration workbench, see here for more details -
SQL*Developer main page -
http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
Database Migration technology -
http://www.oracle.com/technetwork/database/migration/index-084442.html
If it is something you want to do on a regular basis then you could use a gateway to make a connection between SQL*Server and Oracle and then copy or select from the remote tables.
The following page has more detail -
http://www.oracle.com/technetwork/database/gateways/index.html
and this note if you have access to My Oracle Support -
Master Note for Oracle Gateway Products (Doc ID 1083703.1)
You could also use GoldenGate which allows real-time replication between Oracle and non-Oracle databases -
http://www.oracle.com/technetwork/middleware/goldengate/overview/index.html
Regards,
Mike -
HOW TO APPEND TABLE ON ORACLE DATABASE?
DEAR ALL,
CAN ANY ONE SUGGEST ME WITH SOME SAMPLE CODE AS TO HOW TO UPDATE AND APPEND TABLE ON ORACLE DATABASE USING SQL.
EXEC SQL.
APPEND TABLE FROM INT-TABLE.
END EXEC.
WILL THIS WORK.Check the sample code:
DATA Y TYPE I VALUE 300.
DATA Z TYPE I.
EXEC SQL.
INSERT INTO AVERI_CLNT (CLIENT, ARG1, ARG2, ARG3)
VALUES ('000', 9, 2, 47)
ENDEXEC.
DATA: F1(3), F2(3), F3(3).
F3 = ' 1 '.
EXEC SQL PERFORMING WRITE_AVERI_CLNT.
SELECT CLIENT, ARG1 INTO :F1, :F2 FROM AVERI_CLNT
WHERE ARG2 = :F3
ENDEXEC.
FORM WRITE_AVERI_CLNT.
WRITE: / F1, F2.
ENDFORM.
Check the below link:
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm
Regards,
Prakash. -
Querying SQL server table from Oracle database 11g
Hi all
We are using oracle database 11g R2 on REL 5 and i have an SQL server database used by one of our application.
In my Oracle database, i want to query one table in my SQL server database and to link it in a table in Oracle database to compare data.
Is there a way like database link or something else to do this need>
Please send a link or pots here step by step the way on how to accomplish my query.
Thank you.Yes, you can set up your SQL Server as an external database link, using Oracle Heterogeneous Services with SQL Server as an ODBC connection (easier to do if your Oracle server is a Windows server, a little more tricky if your Oracle server is *nix based)
Here's the documentation... for 11gR2
http://www.oracle.com/pls/db112/search?remark=quick_search&word=heterogeneous+services -
Hi All,
This is regarding the Tab table in the oracle database.
When I query this Tab table using a database account I cannot see some of the tables in it, where as using another database accout I can see all those tables.
Any idea why?both user own different tables.
Defination of TAB view is below
1* select owner,text from dba_views where view_name='TAB'
OWNER TEXT
SYS select o.name,
decode(o.type#, 2, 'TABLE', 3, 'CL
USTER',
4, 'VIEW', 5, 'SYNONYM'), t
.tab#
from sys.tab$ t, sys."_CURRENT_EDITIO
N_OBJ" o
where o.owner# = userenv('SCHEMAID')
and o.type# >=2
and o.type# <=5
and o.linkname is null
and o.obj# = t.obj# (+)
it showing user tables detail
SQL> sho user
USER is "SCOTT"
SQL>
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
DEPT TABLE
EMP TABLE
BONUS TABLE
SALGRADE TABLE
EMP2 TABLE
T6 TABLE
T3 TABLE
EMP1 TABLE
EMP1_TEMP TABLE
T$1 TABLE
T$2 TABLE
TEST TABLE
TT TABLE
BULK TABLE
14 rows selected.
SQL> select table_name from user_tables;
TABLE_NAME
DEPT
EMP
BONUS
SALGRADE
EMP2
T6
T3
EMP1_TEMP
T$1
T$2
TEST
TT
BULK
EMP1
14 rows selected.
SQL>
SQL>
SQL>
SQL> create table tst(no number);
Table created.
SQL> select table_name from user_tables;
TABLE_NAME
DEPT
EMP
BONUS
SALGRADE
EMP2
T6
T3
EMP1_TEMP
T$1
T$2
TST
TEST
TT
BULK
EMP1
15 rows selected.
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
DEPT TABLE
EMP TABLE
BONUS TABLE
SALGRADE TABLE
EMP2 TABLE
T6 TABLE
T3 TABLE
EMP1 TABLE
EMP1_TEMP TABLE
T$1 TABLE
T$2 TABLE
TST TABLE
TEST TABLE
TT TABLE
BULK TABLE
15 rows selected. -
Error while accessing a Table on Oracle Database 10.2
Hi Experts,
We have a table that contains a CLOB datatype in one of its column. However when i tried to access the table i get the below error.
<b>Table Name:</b> discrete_jobs
<b>Error:</b>
(Error starting at line 1 in command:
select * from [email protected]
Error report:
SQL Error: ORA-22992: cannot use LOB locators selected from remote tables
22992. 00000 - "cannot use LOB locators selected from remote tables"
*Cause: A remote LOB column cannot be referenced.
*Action: Remove references to LOBs in remote tables.)
Pleas Help!
Regards,
Ravi RSee some work arounds - "How to select table from remote database having clob field</a>
-
Joining 2 tables in oracle database using SQL
I want to join 2 tables together before executing a statement.
problem is one is a table of users, who have userID's
and the othet table is a table of events that are owned by a userID, ie can have many events by same userID.
i want to retrieve forename and lastname from the users table, nd the event details from the event table, and put a name against each event rather than a userID, how can i do this?
note i want to extract EVERY SINGLE EVENT, and get the name of the user it is owned by via the userID
heres a example of a row
Table Users
| UserID | Forename | Surname |
| Y244850 | Jimmy | Conner |
| Y256738 | Mikey | Reeves |
Table Events
| UserID | Date | Type | Location |
| Y244850 | 07-Jan-01 | Holiday | Ibiza |
| Y244850 | 15-Dec-01 | Holiday | Jamaica |
------------------------------------------------Well just exchange user_id with u.user_ud or l.user_id:
SQL> SELECT forename, surname, TO_CHAR(id) id,
TO_CHAR(start_date) start_date, TO_CHAR(end_date)
end_date, type, u.user_id, location FROM leave_details l,
user_details u WHERE l.user_id = u.user_id;
When you just say select user_id, the database doesn't know wich user_id to use. The one in details or in users...
(Even though you and me know its the same)
So just be spesific and choose one.
Sjur -
How to Restore deleted records in other table in oracle database 10g...
Hi All,
i want to restore deleted records of a particular table in other table
suppose:
i perform a query
delete from emp
where deptno =30;
now i wont to restore deptno=30 records in other table, let say in emp1 table
can any one let me know how to do it?
Thanks..This is what flashback query is for:
orclz> conn scott/tiger
Connected.
orclz> select count(*) from emp;
COUNT(*)
14
orclz> delete from emp where deptno=30;
6 rows deleted.
orclz> commit;
Commit complete.
orclz> create table deleted30 as select * from emp as of timestamp(systimestamp - 5/1440) where deptno=30;
Table created.
orclz> select count(*) from deleted30;
COUNT(*)
6
orclz> -
Does Oracle Database Express Edition 11g support CLOB datatype?
I am having problems in displaying CLOB data type columns when I query my tables in Oracle Database Express Edition 11g. I am getting garbage values. However when I do the exact same thing in the Enterprise Edition I do not have any problems. So I am thinking that the Express Edition does not support CLOB data types due to its size limitations. Am I missing something here?
Hi, and welcome to the OTN forums!
I download a year ago oracle 10g and installed in windows7/64bit.
Now 11g is available. But it says does not work in x64.Well, in fact, 10.2 XE wasn't certified for x64 either, not even for Linux x64...
11.2 XE has a Linux x86_64 release, and there has been an announcement that there'll be a x64 release for Windows as well, but it's not available (yet).
There have been a lot of reports that people got 11.2 XE work on x64 Windows machines as well, with a few tweaks at installation time and/or afterwards...
You'll find tons of posts on that topic when using forum search...
oracle 10g seems to be not available anymore.Right, the official downloads have been removed after all database 10.2 releases fell out of (regular) support.
-Udo
Edited by: Udo on 15.04.2013 21:48 -
Insert /delete data from SAP Z table to Oracle table and opposite
Hi,
Can u help me write this FM from the SAP side?
So, I have two tables ZTABLE in SAP and Oracle table ORAC.
Let's put three columns in each of them, for example
TEL1
TEL2
ADRESS
NAME
where TEL field is primary from ZTABLE to ORAC...
(in FM there shoud be abap code for writing data in ZTABLE after we press some pushbutton made in sap screen painter..)
for example, when we write new record in ZTABLE
00
112233
Street 4
Name1
this data shoud be inserted in Oracle table ORAC.
when we write new record in Oracle table for example
01
445566
New Street
Name2
this data shoud be inserted in ZTABLE.
Field TEL1 can be only of two values 01 or 02, other combination is not valid...
I must have all data from Oracle table ORAC in ZTABLE and opposite.
It should be the same scenario for DELETE...
And this communication should be online between sap and table in oracle database...
Can u help me from sap side? and give idea how to configure on oracle side??
Thanks a lot,
NihadI dont know if we can directly connect to a oracle database ( wait for the answers from others on this )
but in XI we have the JDBC adaptor to insert and retrieve data.
so for the outbound from SAP the flow can be something like this (with XI in landscape):
1) You have a screen to maintain a new entry / delete an entry
2) On save , this record gets saved or deleted from the Ztable in SAP
3)) In the same screen you can call a proxy class-method (generated using SPROXY transaction ) to send the record to XI.
4) XI to format it and insert into the oracle table
Mathews -
Passing the XML payload to the cursor in the Oracle Database
Hi Experts,
I am trying to insert multiple records in the table of oracle database. I am sending 5000 records per message. I am using a stored procedure to insert the records. I want to make a single call to the stored procedure and insert all the records.
I dont want to call SP for each record.
Please suggest the way to implement this (Using Cursor/Loop) .
Thanks
AjayHi
Use these link to insert multiple record in single call using stored procedure.
http://www.vikramlakhotia.com/Inserting_multiple_records_using_one_stored_procedure.aspx
http://weblogs.sqlteam.com/travisl/archive/2005/01/04/3931.aspx
use this thread
http://forums.asp.net/t/1235809.aspx -
How to programmatically connect to MS Access linked tables to oracle ?
Hi,
I have database in MS Access which has linked table in oracle database.
But I am not able to connect to that linked table through java program .
It gives me java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'servername' failed.
Can anybody suggest me how to tackle this problem?This blog post should have most (if not all) of what you need:
http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/16/how-can-i-use-windows-powershell-to-create-an-office-access-database.aspx
One thing to watch out for is the db provider for the connection string. The "Jet Engine" has been superseded by
ACE. -
MIgration from MYSQL database to Oracle database
HI,
Can you pls let me know how can we do this using Oracle SQL Developer.
In Mysql database we are having one table which is not normalized and corresponding to it we have created normalized tables in oracle database.
so scenario is like this
EMP table in MYSQL database ----------- need to migrate to----> Employee table
Dept table.
These tables are having some extra columns also which are not there in EMP table in MYSQL database.
SO we want to fill some default values for the new columns while doing the migration.
Can you pls let me know if this is achievable through SQL Developer and how?Sorry, you'd have to do this in 2 steps:
1. Migrate the tables as they are.
2. Insert the rows from the migrated tables into the new ones.
Have fun,
K.
Maybe you are looking for
-
Hey all. I have seen some '4. and X-Fi anger/distress' on this forum, but my question is slightly different to that problem. Currently I have Realtek AC97 onboard sound. I have a 4. setup. To run it though, I have to select 5. in Realtek properties o
-
Macbook hardisk ticking, is my hardisk almost dead?
I have an Alu Unibody Macbook.. Been taking good care of it over the past 3-4 months..Yesterday I had the lid closed and it was sleeping..I lifted the lid and I got the rainbow wheel..My hardisk then began to tick loudly until it stopped. I closed th
-
Hi, I'm a long time PC user that bought a powerbook a few months ago and totally LOVE it. I am now going to buy a desktop computer and am wondering if I should buy a new iMac (20") I am not a power user, but plan to create DVD's and work with photos
-
i need to open a session in first servlet and use its values in the second one... but i cant find really useful sample and .... i did it this way: ////////////////////in first servlet////////////////////////////////// HttpSession session = req.getSes
-
Hi all want to do a screen exit for the transction f-29 (payment Header data ) in which the data has to store in bseg . here i want to insert one parameter named personal no ... here i am not able to find the exit .. can u help me out