Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Problem dropping temp tables from Oracle

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Problem dropping temp tables from Oracle
 Login/Join
 
Master
posted
I am building some temp tables using ON TABLE HOLD AS tmpname FORMAT ORACLE. All is working fine until I try to DROP the tables. I have even tried doing a TRUNCATE first, then a DROP. The problem is I can do the DROP or TRUNCATE/DROP and I get no errors, however, what is left is a table name the looks like the following:

BIN$WF7Pnk33khfgQH4QCkI6+Q==$0

I have even tried doing the DROP inside PLSQL and SQLPlus. I get a message saying the table was dropped but when I look at the list of table names in Oracle (either in TOAD or WebFOCUS Console, Metadata/New Synonym, there a table with a name like this above.

BTW, the names always start with BIN$WF7

Anyone have any idea what is going on here?

This message has been edited. Last edited by: jgelona,


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Member
posted Hide Post
Hi, if your having the same problem within Oracle then maybe it would help to check with Oracle or Oracle forums. What happens if you drop the table in sql*plus
 
Posts: 12 | Location: New Yawk | Registered: February 16, 2006Report This Post
Master
posted Hide Post
Same thing. The only problem with checking with Oracle or Oracle forums is that it only occurs with tables created within WebFOCUS using HOLD AS tablename FORMAT ORACLE.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
Have you tried "ON TABLE HOLD AS tmpname FORMAT SQLORA"? FORMAT ORACLE doesn't seem to be documented anywhere.

Take a look at this tech support document: ORACLE: How to use HOLD files with passthru?

And this might be of help: SQL passthrough and hold files


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Actually, I got the FORMAT ORACLE syntax from the FOCUS manual titled, "Interface to Oracle Users Manual Release 6.5". Any way, I tried the FORMAT SQLORA and there is no difference. The table is created just fine. However, when I DROP the table (ENGINE SQLORA DROP TABLE TEST1), it leaves a garbage name. I can see it when I go into the console and select metadata, new synonym. The same thing happens if I try to DROP the table in SQLPlus.

I think I will open a problem report with IBI.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
Maybe this will make the DROP work:

"If the table to be dropped contains any primary or unique keys referenced by foreign keys of other tables and you intend to drop the FOREIGN KEY constraints of the child tables, then include the CASCADE clause in the DROP TABLE statement, as shown below:

DROP TABLE admin_emp_dept CASCADE CONSTRAINTS;"

From Oracle 10g Tutorials : Dropping Tables


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
That (CASCASDE CONSTRAINTS) did not work, but further down in the link was the PURGE option and that worked.

So the solution is:
ENGINE SQLORA DROP TABLE tablename PURGE;


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Problem dropping temp tables from Oracle

Copyright © 1996-2020 Information Builders