Drop table problem
How can i drop a table (Access) with JDBC like "test one"?
My problem is, that the table have in the name a whitespace.
thank's
The Access convention for non-standard table or column names is to surround them with square brackets, like this:
DROP TABLE [Bad Choice Of Name]
Similar Messages
-
Hello
We got some strange behavor when we trying to dynamicaly create tables in Oracle 8.1.6 trought JDBC.
before creating new table I check that table already exists and in this case drop existing one.
after that I create table with name similiar to dropped table.
Ooops - table still exist. Oracle throw SQLException.
I we tried to commit after drop statement (i know that DROP is DDL) but result the same.
I we got no idea about origin of this problem.
if anybody solve similiar problem or have clue please response.
Thanks in advance.Ok it may look somewhat complex...
for ( Iterator iter = queries.iterator(); iter.hasNext(); ) {
db_statement = null;
EStatement statement_to_execute = (EStatement)iter.next();
try {
if (statement_to_execute.getStatement().startsWith("CREATE TABLE") ) {
db_statement = db_connection.prepareStatement("SELECT table_name from user_tables where table_name = 'SSQB_ESR_RESULT_"+session.ID+"'");
ResultSet rset = db_statement.executeQuery();
boolean exists = rset.next(); // this mean that table exists
db_statement.close();
if (exists) {
db_statement = db_connection.prepareStatement("DROP TABLE SSQB_ESR_RESULT_"+session.ID);
db_statement.executeUpdate();
db_statement.close();
db_statement = db_connection.prepareStatement(reportMD.generateCreateSQL(session.ID)); // there thrown SQLException table with this name already exists
db_statement.executeUpdate();
db_statement.close();
} else { // not DDL statement
} -
Dropping Table: ORA-00054
When going to drop a table in a particular schema, I receive the following error:
ORA-00054: resource busy and acquire with NOWAIT specified.
My command:
drop table schema1.table1;
I've tried the above drop command several times. No matter what, I keep on getting the same error. How can I successfully drop this table? I also tried logging out & back into my toad session.Looks like you were having quite some trouble with your toad connections. This one and the other insert problem.
Try Oracle SQL Developer and/or SQLPLUS
Not only there are native Oracle products, but also they are free to use with your database.
http://www.oracle.com/technology/products/database/sql_developer/index.html -
DROP TABLE works through SSMS but not via T-SQL Query
Hello All,
I am trying to drop a number of tables (1,000+) in a particular database by scripting the actions in T-SQL. When I run the query I get error 3701 on every table which points to a permissions issue. However, I am able to delete tables one by one using
the tree-view in the SSMS Object Explorer.
1. I have tried starting query sessions with both the DBO of the database and the SA account to no avail. (Both had the sysadmin role when I tried.)
2. Both the DBO account and the SA account are able to drop tables using SSMS Object Explorer.
Do I need a specific GRANT of permissions to use T-SQL versus SSMS or am I missing something even more fundamental?
TIA, Simon
<code>
DECLARE @Company VARCHAR(max),
@ID VARCHAR(max),
@NAME VARCHAR(max),
@TABLE_CATALOG VARCHAR(max),
@NAV_DATABASE VARCHAR(max),
@TABLE_NAME VARCHAR(max),
@STATEMENT VARCHAR(max),
@OBJECT_NAME VARCHAR(max),
@OBJECT_NAME_BARE VARCHAR(max),
@OBJECT_TYPE VARCHAR(max);
SET @TABLE_CATALOG = 'NAV_PENTA_TEST_GAAP';
SET @NAV_DATABASE = @TABLE_CATALOG
IF @TABLE_CATALOG <> DB_NAME()
BEGIN
DECLARE @ERRORMSG VARCHAR(max);
SET @ERRORMSG = 'You are not in the correct database. You specified ' + @TABLE_CATALOG + ' but you are currently in a session for ' + db_name();
RAISERROR(@ERRORMSG, 18, 1);
RETURN;
END;
-- To hold the object names (tables) from Navision
CREATE TABLE #NavisionObjects
[CompanyName]
VARCHAR(max),
[ID] VARCHAR(max),
[Name]
VARCHAR(max),
[TABLE_NAME]
VARCHAR(max)
-- To hold the object names (tables) from SQL only
CREATE TABLE #NavisionSQLObjects
[TABLE_NAME]
VARCHAR(max)
-- Holds the list of dependent objects
CREATE TABLE #DependentObjects
[name] VARCHAR(max),
[type] VARCHAR(max)
WITH T AS (
SELECT [Company Name],[ID],[Name],[Company Name]+'$'+[Name] AS TABLE_NAME
FROM [Object]
WHERE [Name] like '%IT IS%' AND [Company Name]>''
UNION ALL
SELECT [Company Name],[ID],[Name],[Name] AS TABLE_NAME
FROM [Object]
WHERE [Name] like '%IT IS%' AND [Company Name] IN ('',' ')
INSERT INTO #NavisionObjects SELECT [Company Name],[ID],[Name],[TABLE_NAME] FROM T;
UPDATE #NavisionObjects SET TABLE_NAME = TABLE_NAME+ID WHERE ID LIKE '1%';
INSERT INTO #NavisionSQLObjects
SELECT TABLE_NAME from INFORMATION_SCHEMA.TABLES
WHERE TABLE_CATALOG = @TABLE_CATALOG AND TABLE_NAME LIKE '%IT IS%' AND TABLE_TYPE='BASE TABLE';
--SELECT * FROM #NavisionObjects where CompanyName like 'E15%' order by TABLE_NAME;
--SELECT * FROM #NavisionSQLObjects where TABLE_NAME like 'E15%' order by TABLE_NAME;
DECLARE cTables CURSOR FOR SELECT A.CompanyName,A.ID,A.[TABLE_NAME] FROM #NavisionObjects A
INNER JOIN #NavisionObjects B ON B.[TABLE_NAME]=A.[TABLE_NAME]
OPEN cTables;
FETCH NEXT FROM cTables INTO @Company,@ID,@TABLE_NAME;
WHILE (@@FETCH_STATUS = 0)
BEGIN
PRINT 'Storing dependencies for [' + @TABLE_NAME + ']';
BEGIN TRY
INSERT INTO #DependentObjects
EXEC sp_depends @TABLE_NAME;
END TRY
BEGIN CATCH
PRINT 'Could not get dependencies for table [' + @TABLE_NAME + ']';
END CATCH
FETCH NEXT FROM cTables INTO @Company,@ID,@TABLE_NAME;
END
CLOSE cTables;
Drop dependent objects first so that table drops are less likely to fail.
DECLARE cdo CURSOR FOR SELECT [Name],[Type] FROM #DependentObjects;
OPEN cdo;
FETCH NEXT FROM cdo INTO @OBJECT_NAME, @OBJECT_TYPE;
WHILE (@@FETCH_STATUS = 0)
BEGIN
BEGIN TRY
SET @OBJECT_NAME_BARE =
CASE
WHEN CHARINDEX('dbo',@OBJECT_NAME) = 1
THEN RIGHT(@OBJECT_NAME,LEN(@OBJECT_NAME)-4)
ELSE @OBJECT_NAME
END;
SET @STATEMENT = 'DROP ' + @OBJECT_TYPE + ' [' + @OBJECT_NAME_BARE + ']';
PRINT @STATEMENT;
EXEC sys.sp_sqlexec @STATEMENT;
END TRY
BEGIN CATCH
PRINT 'Could not DROP object [' + @OBJECT_NAME + '] of type ' + @OBJECT_TYPE + ', SQL Error ' + CAST(@@ERROR AS VARCHAR(max));
END CATCH
FETCH NEXT FROM cdo INTO @OBJECT_NAME, @OBJECT_TYPE;
END
CLOSE cdo;
DEALLOCATE cdo;
OPEN cTables;
FETCH NEXT FROM cTables INTO @Company,@ID,@TABLE_NAME;
WHILE (@@FETCH_STATUS = 0)
BEGIN
PRINT 'Removing [' + @TABLE_NAME + ']' ;
BEGIN TRY
SET @STATEMENT = 'TRUNCATE TABLE dbo.[' + @TABLE_NAME + ']';
PRINT @STATEMENT;
EXEC sys.sp_sqlexec @STATEMENT;
END TRY
BEGIN CATCH
PRINT 'Could not truncate table [' + @TABLE_NAME + ']';
END CATCH
BEGIN TRY
SET @STATEMENT = 'DROP TABLE dbo.[' + @TABLE_NAME + ']';
PRINT @STATEMENT;
EXEC sys.sp_sqlexec @STATEMENT;
BEGIN TRY
SET @STATEMENT = 'DELETE FROM [Object] WHERE [Company Name] = ' + CHAR(39) + @Company + CHAR(39) + ' AND [ID] = ' + CHAR(39) + @ID + CHAR(39) + ' AND [TABLE_NAME] = ' + CHAR(39) +
@TABLE_NAME + CHAR(39) ;
EXEC sys.sp_sqlexec @STATEMENT;
print @STATEMENT;
END TRY
BEGIN CATCH
PRINT 'Could not Delete Object [' + @TABLE_NAME + '], from Object table, SQL Error ' + CAST(@@ERROR AS VARCHAR(max));
END CATCH
END TRY
BEGIN CATCH
PRINT 'Could not DROP table [' + @TABLE_NAME + '], SQL Error ' + CAST(@@ERROR AS VARCHAR(max));
END CATCH
FETCH NEXT FROM cTables INTO @Company,@ID,@TABLE_NAME;
END
CLOSE cTables;
DEALLOCATE cTables;
DROP TABLE #DependentObjects;
DROP TABLE #NavisionObjects;
DROP Table #NavisionSQLObjects;
</code>3701 = ...does not exist or you don't have permission.
Most of the time it means the former. So there are probably some problems in your DROP TABLE statements. Since there is a whole lot about Navision in the script, I decline from trying to figure out what. But I encourage you to study the PRINT statements.
I think that it would be a good idea to include the schema name, in cases these tables are not in dbo after all.
Note: rather than writing:
SET @STATEMENT = 'DROP ' + @OBJECT_TYPE + ' [' + @OBJECT_NAME_BARE + ']';
write:
SET @STATEMENT = 'DROP ' + @OBJECT_TYPE + quotename(@OBJECT_NAME_BARE)
Somewhat briefer. And it works also when the object name includes a right bracket.
sp_sqlexec is undocumented, use sp_executesql instead.
Erland Sommarskog, SQL Server MVP, [email protected] -
Hi
i have Oracle 10g R2 i'm facing one problem, that there is a table which has been dropped it's in Recycle Bin there is many information about dropped table like Dropped time, user and etc..
But i want to know the Terminal or Machine name which the drop command was issued.
Please guide me in this regard.
NasirHi Masir,
For DDL auditing, consider a DDL trigger:
http://www.dba-oracle.com/t_ddl_triggers.htm
Using the Data Definition Language (DDL) triggers, the Oracle DBA can automatically track all changes to the database, including changes to tables, indexes, and constraints. The data from this trigger is especially useful for change control for the Oracle DBA.
DDL triggers execute every time a DDL statement is executed, and adds new entries to your new table, as shown below:
connect sys/manager
create or replace trigger
DDLTrigger
AFTER DDL ON DATABASE
BEGIN
insert into
perfstat.stats$ddl_log
user_name,
ddl_date,
ddl_type,
object_type,
owner,
object_name
VALUES
ora_login_user,
sysdate,
ora_sysevent,
ora_dict_obj_type,
ora_dict_obj_owner,
ora_dict_obj_name
END;
HTH . ..
Don Burleson -
Drop tables from USERS tablesapce
Hello,
I am newbie to Oracle
1) I want to DROP all tables we created except from those that begins with QNT letters. I tried
BEGIN
FOR T IN (SELECT TABLE_NAME FROM USER_TABLES)
LOOP
EXECUTE IMMEDIATE ('DROP TABLE MyUserName.' || T.TABLE_NAME);
END LOOP;
END;
but I get error
ORA-00933: SQL command not properly ended
or when changing line 4
EXECUTE IMMEDIATE ('DROP TABLE ' || T.TABLE_NAME);
I get
ORA-00903: Invalid table name
What's the problem? How Can I ignore QNTxxxx tables?
2) In addition, I get error when log in to Oracle Schema Manager (though, I log in successfully to SQL WorkSheet)
MGR-02150: an unrecognized database version was encountered.
why?
The server app is 10g, and my computer client app is 8.0.5
Your help will be appreciated,
Orinote: I made little change: 'Q' instead of 'QNT'
On sql plus i got error
ERROR at line 1:
ORA-06550: line 2, column 0:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
:= . ( @ % ;
And on sql worksheet the result is:
SQLWKS> DECLARE v_sql VARCHAR2(50);
2> BEGIN FOR t IN ( SELECT table_name FROM user_tables WHERE SUBSTR(table_name,1,1) <> 'Q' ) LOOP v_sql := 'drop table ' || t.table_name;
3> EXECUTE IMMEDIATE v_sql;
4> END LOOP;
5> EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR ( -20000 , 'Error executing command:' || CHR(10) || v_sql , TRUE );
6> END;
7>
ORA-20000: Error executing command:
drop table Table1
ORA-06512: at line 5
ORA-00942: table or view does not exist -
Hello,
could someone share any tips on improving execution times for dropping tables?
I have a blank table with over 200 columns and it takes 23-25s to drop. Smaller tables take something around 0.1s of course. Problem is I need to drop thousands of such tables and then recreate them. The recreate itself takes no more than a second.
What's the origin of a longer time? Is it because of an implicit commit in the drop table command?
I've tried this in noarchivelog mode with almost identical times. I've also tried different optimizer_mode settings and commit_logging, none have shown any usable results, but I'm still experimenting. The goal is to minimize execution time once I need to run the whole batch, maybe running multiple sessions can work out to be faster (while individual times are maybe longer), not sure yet.
Here is a sample output:
SQL> CREATE TABLE "SYSADM"."DRIVERTEST"
2 (
3 "PROCESS_INSTANCE" NUMBER(10,0) NOT NULL ENABLE,
4 "INTFC_ID" NUMBER(*,0) NOT NULL ENABLE,
5 "INTFC_LINE_NUM" NUMBER(*,0) NOT NULL ENABLE,
6 "TRANS_TYPE_BI" VARCHAR2(4 CHAR) NOT NULL ENABLE,
7 "TRANS_TYPE_BI_SEQ" NUMBER(*,0) NOT NULL ENABLE,
8 "HDR_FIELDS_KEY" VARCHAR2(30 CHAR) NOT NULL ENABLE,
9 "HDR_FIELDS_BILL_BY" VARCHAR2(1 CHAR) NOT NULL ENABLE,
10 "ADJ_TRANS_TYPE" VARCHAR2(5 CHAR) NOT NULL ENABLE,
11 "CREATE_NEW_BILL" VARCHAR2(1 CHAR) NOT NULL ENABLE,
12 "TMP_BILL_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
13 "ENTRY_TYPE" VARCHAR2(5 CHAR) NOT NULL ENABLE,
14 "ENTRY_REASON" VARCHAR2(5 CHAR) NOT NULL ENABLE,
15 "ENTRY_EVENT" VARCHAR2(10 CHAR) NOT NULL ENABLE,
16 "LOAD_STATUS_BI" VARCHAR2(3 CHAR) NOT NULL ENABLE,
17 "ERROR_STATUS_BI" VARCHAR2(4 CHAR) NOT NULL ENABLE,
18 "BUSINESS_UNIT" VARCHAR2(5 CHAR) NOT NULL ENABLE,
19 "BUSINESS_UNIT_GL" VARCHAR2(5 CHAR) NOT NULL ENABLE,
20 "BILL_TO_CUST_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
21 "ADDRESS_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
22 "BILL_TO_COPIES" NUMBER(*,0) NOT NULL ENABLE,
23 "CNTCT_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
24 "NAME1" VARCHAR2(40 CHAR) NOT NULL ENABLE,
25 "INTERUNIT_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
26 "BUSINESS_UNIT_TO" VARCHAR2(5 CHAR) NOT NULL ENABLE,
27 "DIRECT_INVOICING" VARCHAR2(1 CHAR) NOT NULL ENABLE,
28 "RANGE_SELECTION_ID" VARCHAR2(30 CHAR) NOT NULL ENABLE,
29 "BILL_SOURCE_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
30 "BILL_TYPE_ID" VARCHAR2(3 CHAR) NOT NULL ENABLE,
31 "BILL_CYCLE_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
32 "BILL_BY_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
33 "PAYMENT_METHOD" VARCHAR2(3 CHAR) NOT NULL ENABLE,
34 "PYMNT_TERMS_CD" VARCHAR2(5 CHAR) NOT NULL ENABLE,
35 "BANK_CD" VARCHAR2(5 CHAR) NOT NULL ENABLE,
36 "BANK_ACCT_KEY" VARCHAR2(4 CHAR) NOT NULL ENABLE,
37 "BI_CURRENCY_CD" VARCHAR2(3 CHAR) NOT NULL ENABLE,
38 "BASE_CURRENCY" VARCHAR2(3 CHAR) NOT NULL ENABLE,
39 "CUR_RT_TYPE" VARCHAR2(5 CHAR) NOT NULL ENABLE,
40 "RATE_MULT" NUMBER(15,8) NOT NULL ENABLE,
41 "RATE_DIV" NUMBER(15,8) NOT NULL ENABLE,
42 "CUR_RT_SOURCE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
43 "INVOICE_DT" DATE,
44 "ACCOUNTING_DT" DATE,
45 "ACCRUE_UNBILLED" VARCHAR2(1 CHAR) NOT NULL ENABLE,
46 "TARGET_INVOICE" VARCHAR2(22 CHAR) NOT NULL ENABLE,
47 "INVOICE" VARCHAR2(22 CHAR) NOT NULL ENABLE,
48 "DOC_TYPE" VARCHAR2(8 CHAR) NOT NULL ENABLE,
49 "CONSOL_SETID" VARCHAR2(5 CHAR) NOT NULL ENABLE,
50 "CONSOL_CUST_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
51 "CONSOL_KEY" VARCHAR2(22 CHAR) NOT NULL ENABLE,
52 "INVOICE_TO_ADJ" VARCHAR2(22 CHAR) NOT NULL ENABLE,
53 "ADJ_DELTA_ACTION" VARCHAR2(3 CHAR) NOT NULL ENABLE,
54 "LINE_SEQ_TO_ADJ" NUMBER(*,0) NOT NULL ENABLE,
55 "LINE_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
56 "LINE_DST_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
57 "LINE_DFR_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
58 "LINE_UAR_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
59 "LAST_NOTE_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
60 "NOTES_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
61 "LINE_TYPE" VARCHAR2(4 CHAR) NOT NULL ENABLE,
62 "IDENTIFIER" VARCHAR2(18 CHAR) NOT NULL ENABLE,
63 "DESCR" VARCHAR2(30 CHAR) NOT NULL ENABLE,
64 "UNIT_OF_MEASURE" VARCHAR2(3 CHAR) NOT NULL ENABLE,
65 "QTY" NUMBER(15,4) NOT NULL ENABLE,
66 "ORIG_QTY" NUMBER(15,4) NOT NULL ENABLE,
67 "UNIT_AMT" NUMBER(15,4) NOT NULL ENABLE,
68 "LIST_PRICE" NUMBER(15,4) NOT NULL ENABLE,
69 "PPRC_PROMO_CD" VARCHAR2(20 CHAR) NOT NULL ENABLE,
70 "MERCH_TYPE" VARCHAR2(10 CHAR) NOT NULL ENABLE,
71 "TAX_CD" VARCHAR2(8 CHAR) NOT NULL ENABLE,
72 "TAX_EXEMPT_CERT" VARCHAR2(30 CHAR) NOT NULL ENABLE,
73 "TAX_EXEMPT_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
74 "TAX_EXEMPT_RC" VARCHAR2(2 CHAR) NOT NULL ENABLE,
75 "TAX_JOB_NUM" VARCHAR2(10 CHAR) NOT NULL ENABLE,
76 "BI_TAX_TIMING" VARCHAR2(1 CHAR) NOT NULL ENABLE,
77 "CUSTOMER_GROUP" VARCHAR2(10 CHAR) NOT NULL ENABLE,
78 "VAT_TXN_TYPE_CD" VARCHAR2(4 CHAR) NOT NULL ENABLE,
79 "TAX_CD_VAT" VARCHAR2(8 CHAR) NOT NULL ENABLE,
80 "VAT_APPLICABILITY" VARCHAR2(1 CHAR) NOT NULL ENABLE,
81 "VAT_PRODUCT_GROUP" VARCHAR2(10 CHAR) NOT NULL ENABLE,
82 "PROD_GRP_SETID" VARCHAR2(5 CHAR) NOT NULL ENABLE,
83 "IST_TXN_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
84 "IDENTIFIER_TBL" VARCHAR2(3 CHAR) NOT NULL ENABLE,
85 "SHIP_FROM_LOC" VARCHAR2(10 CHAR) NOT NULL ENABLE,
86 "ORD_ACCEPT_LOC" VARCHAR2(10 CHAR) NOT NULL ENABLE,
87 "ORD_ORIGIN_LOC" VARCHAR2(10 CHAR) NOT NULL ENABLE,
88 "STORE_LOC" VARCHAR2(10 CHAR) NOT NULL ENABLE,
89 "TITLE_PASSAGE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
90 "TAX_GROUP" VARCHAR2(10 CHAR) NOT NULL ENABLE,
91 "TAX_USER_AREA" VARCHAR2(25 CHAR) NOT NULL ENABLE,
92 "TAX_TRANS_TYPE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
93 "TAX_TRANS_SUB_TYPE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
94 "NET_EXTENDED_AMT" NUMBER(26,3) NOT NULL ENABLE,
95 "GROSS_EXTENDED_AMT" NUMBER(26,3) NOT NULL ENABLE,
96 "REV_RECOG_BASIS" VARCHAR2(3 CHAR) NOT NULL ENABLE,
97 "PROJECT_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
98 "BUSINESS_UNIT_OM" VARCHAR2(5 CHAR) NOT NULL ENABLE,
99 "ORDER_NO" VARCHAR2(10 CHAR) NOT NULL ENABLE,
100 "ORDER_INT_LINE_NO" NUMBER(*,0) NOT NULL ENABLE,
101 "SCHED_LINE_NBR" NUMBER(*,0) NOT NULL ENABLE,
102 "DEMAND_SOURCE" VARCHAR2(2 CHAR) NOT NULL ENABLE,
103 "DEMAND_LINE_NO" NUMBER(*,0) NOT NULL ENABLE,
104 "BUSINESS_UNIT_RMA" VARCHAR2(5 CHAR) NOT NULL ENABLE,
105 "RMA_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
106 "RMA_LINE_NBR" NUMBER(*,0) NOT NULL ENABLE,
107 "PRODUCT_ID" VARCHAR2(18 CHAR) NOT NULL ENABLE,
108 "ORDER_DATE" DATE,
109 "PO_REF" VARCHAR2(30 CHAR) NOT NULL ENABLE,
110 "PO_LINE" NUMBER(*,0) NOT NULL ENABLE,
111 "CONTRACT_NUM" VARCHAR2(25 CHAR) NOT NULL ENABLE,
112 "CONTRACT_DT" DATE,
113 "CONTRACT_TYPE" VARCHAR2(15 CHAR) NOT NULL ENABLE,
114 "CONTRACT_LINE_NUM" NUMBER(*,0) NOT NULL ENABLE,
115 "FREIGHT_TERMS" VARCHAR2(10 CHAR) NOT NULL ENABLE,
116 "BILL_OF_LADING" VARCHAR2(30 CHAR) NOT NULL ENABLE,
117 "COUNTRY_SHIP_FROM" VARCHAR2(3 CHAR) NOT NULL ENABLE,
118 "COUNTRY_SHIP_TO" VARCHAR2(3 CHAR) NOT NULL ENABLE,
119 "SHIP_TO_CUST_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
120 "SHIP_TO_ADDR_NUM" NUMBER(*,0) NOT NULL ENABLE,
121 "SHIP_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
122 "SHIP_TYPE_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
123 "SHIP_FROM_BU" VARCHAR2(5 CHAR) NOT NULL ENABLE,
124 "SHIP_DATE" DATE,
125 "SHIP_TIME" TIMESTAMP (6),
126 "PACKSLIP_NO" VARCHAR2(22 CHAR) NOT NULL ENABLE,
127 "LC_ID" VARCHAR2(12 CHAR) NOT NULL ENABLE,
128 "LOC_DOC_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
129 "SEQUENCE_NBR" NUMBER(*,0) NOT NULL ENABLE,
130 "SOLD_TO_CUST_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
131 "SOLD_TO_ADDR_NUM" NUMBER(*,0) NOT NULL ENABLE,
132 "BUSINESS_UNIT_PC" VARCHAR2(5 CHAR) NOT NULL ENABLE,
133 "BUSINESS_UNIT_CA" VARCHAR2(5 CHAR) NOT NULL ENABLE,
134 "RT_EFFDT" DATE,
135 "BILL_PLAN_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
136 "PC_DISTRIB_STATUS" VARCHAR2(1 CHAR) NOT NULL ENABLE,
137 "BPLAN_LN_NBR" NUMBER(*,0) NOT NULL ENABLE,
138 "EVENT_OCCURRENCE" NUMBER(*,0) NOT NULL ENABLE,
139 "XREF_SEQ_NUM" NUMBER(*,0) NOT NULL ENABLE,
140 "CONTRACT_PPD_SEQ" NUMBER(*,0) NOT NULL ENABLE,
141 "ANALYSIS_TYPE" VARCHAR2(3 CHAR) NOT NULL ENABLE,
142 "RESOURCE_ID" VARCHAR2(40 CHAR) NOT NULL ENABLE,
143 "RESOURCE_TYPE" VARCHAR2(5 CHAR) NOT NULL ENABLE,
144 "RESOURCE_CATEGORY" VARCHAR2(5 CHAR) NOT NULL ENABLE,
145 "RESOURCE_SUB_CAT" VARCHAR2(5 CHAR) NOT NULL ENABLE,
146 "ACTIVITY_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
147 "ACTIVITY_TYPE" VARCHAR2(5 CHAR) NOT NULL ENABLE,
148 "DIST_CFG_FLAG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
149 "PRODUCT_KIT_ID" VARCHAR2(18 CHAR) NOT NULL ENABLE,
150 "SYSTEM_SOURCE" VARCHAR2(3 CHAR) NOT NULL ENABLE,
151 "EMPLID" VARCHAR2(11 CHAR) NOT NULL ENABLE,
152 "EMPL_RCD" NUMBER(*,0) NOT NULL ENABLE,
153 "START_DT" DATE,
154 "END_DT" DATE,
155 "FROM_DT" DATE,
156 "TO_DT" DATE,
157 "SERVICE_CUST_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
158 "SERVICE_ADDR_NUM" NUMBER(*,0) NOT NULL ENABLE,
159 "NOTE_TYPE" VARCHAR2(10 CHAR) NOT NULL ENABLE,
160 "STD_NOTE_FLAG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
161 "INTERNAL_FLAG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
162 "HDR_OR_LINE_NOTE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
163 "AR_LVL" VARCHAR2(1 CHAR) NOT NULL ENABLE,
164 "AR_DST_OPT" VARCHAR2(1 CHAR) NOT NULL ENABLE,
165 "GL_LVL" VARCHAR2(1 CHAR) NOT NULL ENABLE,
166 "ENABLE_DFR_REV_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
167 "BILLING_SPECIALIST" VARCHAR2(8 CHAR) NOT NULL ENABLE,
168 "BILLING_AUTHORITY" VARCHAR2(8 CHAR) NOT NULL ENABLE,
169 "BILLING_FREQUENCY" VARCHAR2(3 CHAR) NOT NULL ENABLE,
170 "BILL_INQUIRY_PHONE" VARCHAR2(24 CHAR) NOT NULL ENABLE,
171 "SALES_PERSON" VARCHAR2(8 CHAR) NOT NULL ENABLE,
172 "COLLECTOR" VARCHAR2(8 CHAR) NOT NULL ENABLE,
173 "CR_ANALYST" VARCHAR2(8 CHAR) NOT NULL ENABLE,
174 "INVOICE_FORM_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
175 "STD_NOTE_CD" VARCHAR2(10 CHAR) NOT NULL ENABLE,
176 "TOT_LINE_DST_AMT" NUMBER(26,3) NOT NULL ENABLE,
177 "TOT_LINE_DST_PCT" NUMBER(5,2) NOT NULL ENABLE,
178 "TOT_LINE_DFR_PCT" NUMBER(5,2) NOT NULL ENABLE,
179 "TOT_LINE_DFR_AMT" NUMBER(26,3) NOT NULL ENABLE,
180 "TOT_LINE_UAR_AMT" NUMBER(26,3) NOT NULL ENABLE,
181 "TOT_LINE_UAR_PCT" NUMBER(5,2) NOT NULL ENABLE,
182 "SSN" VARCHAR2(9 CHAR) NOT NULL ENABLE,
183 "CHARGE_FROM_DT" DATE,
184 "CHARGE_TO_DT" DATE,
185 "SUBCUST_QUAL1" VARCHAR2(15 CHAR) NOT NULL ENABLE,
186 "SUBCUST_QUAL2" VARCHAR2(15 CHAR) NOT NULL ENABLE,
187 "REIMB_AGREEMENT" VARCHAR2(25 CHAR) NOT NULL ENABLE,
188 "TOT_DISCOUNT_AMT" NUMBER(26,3) NOT NULL ENABLE,
189 "TOT_SURCHARGE_AMT" NUMBER(26,3) NOT NULL ENABLE,
190 "ACCUMULATE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
191 "VAT_TREATMENT_GRP" VARCHAR2(4 CHAR) NOT NULL ENABLE,
192 "COUNTRY_VAT_BILLFR" VARCHAR2(3 CHAR) NOT NULL ENABLE,
193 "COUNTRY_VAT_BILLTO" VARCHAR2(3 CHAR) NOT NULL ENABLE,
194 "VAT_TREATMENT" VARCHAR2(4 CHAR) NOT NULL ENABLE,
195 "PHYSICAL_NATURE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
196 "COUNTRY_LOC_BUYER" VARCHAR2(3 CHAR) NOT NULL ENABLE,
197 "STATE_LOC_BUYER" VARCHAR2(6 CHAR) NOT NULL ENABLE,
198 "COUNTRY_LOC_SELLER" VARCHAR2(3 CHAR) NOT NULL ENABLE,
199 "STATE_LOC_SELLER" VARCHAR2(6 CHAR) NOT NULL ENABLE,
200 "VAT_SVC_SUPPLY_FLG" VARCHAR2(1 CHAR) NOT NULL ENABLE,
201 "VAT_SERVICE_TYPE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
202 "COUNTRY_VAT_PERFRM" VARCHAR2(3 CHAR) NOT NULL ENABLE,
203 "STATE_VAT_PERFRM" VARCHAR2(6 CHAR) NOT NULL ENABLE,
204 "COUNTRY_VAT_SUPPLY" VARCHAR2(3 CHAR) NOT NULL ENABLE,
205 "STATE_VAT_SUPPLY" VARCHAR2(6 CHAR) NOT NULL ENABLE,
206 "STATE_SHIP_FROM" VARCHAR2(6 CHAR) NOT NULL ENABLE,
207 "STATE_SHIP_TO" VARCHAR2(6 CHAR) NOT NULL ENABLE,
208 "MAST_CONTR_ID" VARCHAR2(25 CHAR) NOT NULL ENABLE,
209 "TAX_CUST_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
210 "BUSINESS_UNIT_AM" VARCHAR2(5 CHAR) NOT NULL ENABLE,
211 "BUSINESS_UNIT_AMTO" VARCHAR2(5 CHAR) NOT NULL ENABLE,
212 "ASSET_ID" VARCHAR2(12 CHAR) NOT NULL ENABLE,
213 "PROFILE_ID" VARCHAR2(10 CHAR) NOT NULL ENABLE,
214 "COST_TYPE" VARCHAR2(1 CHAR) NOT NULL ENABLE,
215 "STATE_VAT_DEFAULT" VARCHAR2(6 CHAR) NOT NULL ENABLE,
216 "SO_ID" VARCHAR2(15 CHAR) NOT NULL ENABLE,
217 "BUSINESS_UNIT_RF" VARCHAR2(5 CHAR) NOT NULL ENABLE,
218 "SOURCE_REF_TYPE" VARCHAR2(3 CHAR) NOT NULL ENABLE,
219 "SOURCE_REF_NO" VARCHAR2(35 CHAR) NOT NULL ENABLE,
220 "SOURCE_REF_KEY" VARCHAR2(5 CHAR) NOT NULL ENABLE,
221 "USER_AMT1" NUMBER(26,3) NOT NULL ENABLE,
222 "USER_AMT2" NUMBER(26,3) NOT NULL ENABLE,
223 "USER_DT1" DATE,
224 "USER_DT2" DATE,
225 "USER1" VARCHAR2(1 CHAR) NOT NULL ENABLE,
226 "USER2" VARCHAR2(1 CHAR) NOT NULL ENABLE,
227 "USER3" VARCHAR2(1 CHAR) NOT NULL ENABLE,
228 "USER4" VARCHAR2(1 CHAR) NOT NULL ENABLE,
229 "USER5" VARCHAR2(1 CHAR) NOT NULL ENABLE,
230 "USER6" VARCHAR2(1 CHAR) NOT NULL ENABLE,
231 "USER7" VARCHAR2(1 CHAR) NOT NULL ENABLE,
232 "USER8" VARCHAR2(1 CHAR) NOT NULL ENABLE,
233 "USER9" VARCHAR2(1 CHAR) NOT NULL ENABLE,
234 "SETID" VARCHAR2(5 CHAR) NOT NULL ENABLE,
235 "ADD_DTTM" TIMESTAMP (6),
236 "LAST_UPDATE_DTTM" TIMESTAMP (6),
237 "DELETE_ROWS" VARCHAR2(1 CHAR) NOT NULL ENABLE,
238 "BOOK" VARCHAR2(10 CHAR) NOT NULL ENABLE,
239 "DTTM_STAMP" TIMESTAMP (6),
240 "VAT_RVRSE_CHG_GDS" VARCHAR2(1 CHAR) NOT NULL ENABLE,
241 "TAX_CD_VAT_RVC" VARCHAR2(8 CHAR) NOT NULL ENABLE,
242 "TAX_CD_VAT_RVC_PCT" NUMBER(7,4) NOT NULL ENABLE,
243 "VAT_AMT_RVC" NUMBER(26,3) NOT NULL ENABLE,
244 "VAT_AMT_RVC_BSE" NUMBER(26,3) NOT NULL ENABLE,
245 "VAT_AMT" NUMBER(26,3) NOT NULL ENABLE,
246 "VAT_AMT_BSE" NUMBER(26,3) NOT NULL ENABLE,
247 "TAX_CD_VAT_PCT" NUMBER(7,4) NOT NULL ENABLE
248 )
249 SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 80 INITRANS 1 MAXTRANS 255 N
OCOMPRESS LOGGING STORAGE
250 (
251 INITIAL 16384 NEXT 16384 MAXEXTENTS 2147483645 PCTINCREASE 0
252 )
253 TABLESPACE "AMAPP" ;
Table created.
Elapsed: 00:00:00.76
SQL> CREATE UNIQUE INDEX "SYSADM"."DRIVERTEST1" ON "SYSADM"."DRIVERTEST"
2 (
3 "PROCESS_INSTANCE", "INTFC_ID", "INTFC_LINE_NUM", "TRANS_TYPE_BI", "TRA
NS_TYPE_BI_SEQ"
4 )
5 PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
6 (
7 INITIAL 16384 NEXT 106496 MAXEXTENTS 2147483645 PCTINCREASE 0
8 )
9 TABLESPACE "PSINDEX" ;
Index created.
Elapsed: 00:00:00.04
SQL>
SQL> drop table DRIVERTEST;
Table dropped.
Elapsed: 00:00:24.90This is Oracle 11.2.0.3 Enterprise on Windows 64bit.
Thank you for any input.>
Then I hope this is an academic question (and I understand wanting to answer a question from a purely academic standpoint).
Because ... dropping tables and recreating them -- especially with different structures should be a one-time operation. It would be very easy to spend more time trying to reduce the run time than the non-optimal run time takes. From a business standpoint, it costs more to find a solution than the problem itself is costing. And I'd bet you've already crossed that threshold.
But again, even without a real business problem, it is sometimes worth while to pursue an answer just so you'll have a better understanding of the processes involved.
>
Yes, it is only meant to be run once in a prod environment, eventually. At this point, I'm trying to reduce the execution time to give me options in case I only get a limited maintenance window. Granted, I could have it run for a longer period of time, but it's nice to know of workarounds. After all, this particular script is one of many.
But in a test enviornment? I can run this as many times as I like without affecting anyone. So yes, it is at least 50% curiosity to see if it is possible, but if it provides me with a solution I decide is worth the saved time, then I'll be a happy camper. -
I'm using oracle9i on windows 2000/NT.
All the DDL Commands(alter table,drop table etc..) result in hanging of the session.
On restarting the oracle instance the command starts working. But only for sometime. We reinstalled oracle for 2-3 time and on different servers. But the problem persists. What could be reason/solution for this.No, you cannot avoid the recompiles. An ALTER TABLE changes the structure of the table and all dependent objects have to be recompiled -- the dependent objects
are set to status INVALID. The RDBMS does do an implicit
compile when an INVALID View/Package/Procedure is invoked but, occassionally, with a long list of dependencies and cross-dependencies, it may fail to compile an object.
Use DBA_DEPENDENCIES to identify dependencies.
Hemant -
MaxDB: How can I drop table /BI0/HRSTT_EID?
Hi everybody,
I'm installing IDES ERP 6.0 (MaxDB-Windows2003) and in order to solve a problem and continue with the installation I need to drop the SAP table /BI0/HRSTT_EID.
I tried executing :
> drop table sap<sid>."/bi0/hrstt_eid"
with dbm user but it doesnt find the table. What is the correct syntaxis for this SQL Command with those kind of tables? (with a normal table i.e. 't100' it works fine).
Thanks,
Jessica.anybody?
-
Hello,
I'm currently tring to drop a table using a process trigered by a button click
Icreated my button and also a "PL/SQL process" and I put
DROP TABLE &P0_TABLE_NAME. CASCADE CONSTRAINTS;
inside field "source" with ticking the checkbox "Do not validate PL/SQL code (parse PL/SQL code at runtime only)."
But when a click on the button I have the following error
ORA-06550: line 1, column 7: PLS-00103: Encountered the symbol "DROP" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
Error Error while dropping table
OK
Do anyone have a clue about this ?
Debug trace is
A C C E P T: Request="Purge"
0.00: Metadata: Fetch application definition and shortcuts
0.00: alter session set nls_language="AMERICAN"
0.00: alter session set nls_territory="AMERICA"
0.00: ...NLS: Set Decimal separator="."
0.00: ...NLS: Set NLS Group separator=","
0.00: ...NLS: Set date format="DD-MON-RR"
0.00: ...Setting session time_zone to +02:00
0.00: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
0.00: Fetch session state from database
0.01: ...Check session 2289784661666743 owner
0.01: ...Check for session expiration:
0.01: ...Metadata: Fetch Page, Computation, Process, and Branch
0.01: Session: Fetch session header information
0.01: ...Metadata: Fetch page attributes for application 121, page 2
0.01: ...Validate item page affinity.
0.03: ...Validate hidden_protected items.
0.03: ...Check authorization security schemes
0.03: Session State: Save form items and p_arg_values
0.03: ...Session State: Save "P0_TABLE_NAME" - saving same value: "STATPHI_595730051"
0.04: ...Session State: Save "P2_TABLE_NAME" - saving same value: "STATPHI_595730051"
0.04: ...Session State: Save "P2_TYPE" - saving same value: "2"
0.04: ...Session State: Save "P2_CALENDAR" - saving same value: "PA"
0.04: ...Session State: Save "P2_FILE_NAME" - saving same value: ""
0.04: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
0.04: Branch point: BEFORE_COMPUTATION
0.04: Computation point: AFTER_SUBMIT
0.04: Tabs: Perform Branching for Tab Requests
0.04: Branch point: BEFORE_VALIDATION
0.04: Perform validations:
0.04: Branch point: BEFORE_PROCESSING
0.04: Processing point: AFTER_SUBMIT
0.04: Item button "P2_PURGE_TABLE" pressed process.
0.04: ...Process "DROP TABLE": PLSQL (AFTER_SUBMIT) DROP TABLE &P0_TABLE_NAME. CASCADE CONSTRAINTS;
0.06: Encountered unhandled exception in process type PLSQL
0.06: Show ERROR page...
0.06: Performing rollback...
----Hi user631592 ;-)
You can't used directly a DDL statment.
But you can use an EXECUTE IMMEDIATE in your process.
SO
BEGIN
EXECUTE IMMEDIATE ' DROP TABLE STATPHI_595730051';
END;
Regards -
Drop table if exists in sql statement
Oracle: 10G
Is there a way to check if table exist and then only drop table. Something like:
drop table (select table_name from user_tables where lower(table_name) = 'o2i_filing_dest')As already suggested, you could e.g. use an anonymous PL/SQL block as part of your SQL script, e.g. something like that:
set echo on
spool <your_log_file>
WHENEVER SQLERROR EXIT FAILURE
DECLARE
PROCEDURE EXEC_DONT_FAIL( P_CMD IN VARCHAR2 ) IS
e_table_or_view_does_not_exist exception;
pragma exception_init(e_table_or_view_does_not_exist, -942);
e_type_does_not_exist exception;
pragma exception_init(e_type_does_not_exist, -4043);
e_sequence_does_not_exist exception;
pragma exception_init(e_sequence_does_not_exist, -2289);
BEGIN
EXECUTE IMMEDIATE P_CMD;
EXCEPTION
WHEN e_table_or_view_does_not_exist OR e_type_does_not_exist OR e_sequence_does_not_exist THEN
NULL;
END;
BEGIN
EXEC_DONT_FAIL('drop type <type_name1> force');
EXEC_DONT_FAIL('drop view <view_name1>');
EXEC_DONT_FAIL('drop table <table_name1> purge');
EXEC_DONT_FAIL('drop sequence <seq_name1>');
END;
CREATE TABLE ...Note that the literals in angle brackets are just placeholders for demonstration purposes, you need to use your actual object names/file names there.
Of course you could also use a FOR ... LOOP in the PL/SQL block that queries e.g. USER_OBJECTS to find out which objects to drop.
That way it is ensured that only expected exceptions will be ignored but all others will raise and stop your script in that case.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/
Edited by: Randolf Geist on Sep 25, 2008 10:09 AM
Clarification regarding angle brackets added -
Dear All,
I created one table like
create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
after performing some operations I want to delete the same.
At that time i got following error. Please help me and tell what is the reason for the error.
ORA-00604 error occured at recursive level1
ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
ORA-06512 at line no 2
Thanks and Regards
Prasad26bffcad-f9a2-4dcf-afa0-e1e33d0281bf wrote:
Dear All,
I created one table like
create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
after performing some operations I want to delete the same.
At that time i got following error. Please help me and tell what is the reason for the error.
ORA-00604 error occured at recursive level1
ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
ORA-06512 at line no 2
Thanks and Regards
Prasad
ORA-20123 is a localized/customized error code & message; therefore any solution depends upon what is unique inside your DB now.
I suspect that some sort of TRIGGER exists, which throws posted error, but this is just idle speculation on my part.
How do I ask a question on the forums?
https://forums.oracle.com/message/9362002#9362002 -
AirTunes with AirportExpress cut or drop out problems - my solution...
I buyed 2 of the Airport Extreme one month ago (Firmware 6.3, Itunes 7.1.1), never got them working fine, till yesterday...
I have A Zyxel ADSL WLAN Router Switch. WPA-PSK as I wanted a secure Network. Both of the AX were connected with static IPs. WLAN was always working fine, but I had many cut outs with airtunes. I wanted a solution with lossles streaming audio with the possibility to connect my Receiver digitally. That's why I bought my first Apple hardware, as I was always told, Apple=Plug'n play. Very frustrating!
I tried other switches, Routers, WLAN adapters and cards, nothing worked. Airfoil does not support multiple speakers yet, so it's useless for me.
In the FAQ of the Airtunes, Apple mentioned to use lower security, as some Computers probably do not have enough power to stream music flawlessly. But my Computers really do have enough power! I think the AX does not have enough power to do that. So I created another wireless network with one of my AX. I set the security to WEP-40bit key and joined this new Network with my other AX. Not the best solution, as I'm now connected to the Internet or to the AX to use Airtunes. Cables could fix that problem, but then I could use a wired system instead...
I use Channel 11 for the AX WLAN (the only clean channel in my area), Multicast to 11, only G mode for Wireless and a 5 characters WEP-40 key and no WDS. Seems to work at the moment.
I hope this will help others with the cut or drop out problem. If you have a working AirTunes system, please post your setup. Mostly I'm interested in a Setup with working WPA...Thanks, I hope I can help others with this annoying problem...
Sorry, I forgot to write about the RF Interference. Belive me, I spent hours and hours searching for a solution in the Internet and every checkbox the Admin utility offered me to try out... I'm working as a system engineer, and supporting computer systems since the early 90ties, so I'd say I have a bit knowledge about all the networking, WLAN, Audio... In school we had the Apple Mac I with the 12" monochrome monitor and appletalk for networking quite funny!
But back to the RF interference: At the moment I activated it on both AX I own. I have a microwave, wireless phone and I'm living in a Area with many WLAN access points. I can choose between 6 networks!
I'm the only one with a network higher than channel 6, so this area is clean at least.
As my AirTunes do work at the moment, I'm not going to try if I could also deactivate it.
Next step is to try if I can connect the AX Router to the internet. A connection to my ADSL router should do that, but up to now I had very strange behavior when plugging in a ethernet cable to the AX. If this will work, it will be my final solution, at the moment I only see it as a workaround... -
How to recover the data from a dropped table in production/archive mode
How to recover the data/change on a table that was dropped by accident.
The database is on archive mode.Oracle Version. ? If 10g.
Try this Way
SQL> create table taj as select * from all_objects where rownum <= 100;
Table created.
SQL> drop table taj ;
Table dropped.
SQL> show recyclebin
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
TAJ BIN$b3MmS7kYS9ClMvKm0bu8Vw==$0 TABLE 2006-09-10:16:02:58
SQL> flashback table taj to before drop;
Flashback complete.
SQL> show recyclebin;
SQL> desc taj;
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(30)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED DATE
LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
SQL>M.S.Taj -
Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?2765539 wrote:
Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
Your first question is easy, you configure audit to log to the OS audit trail with
alter system set audit_trail=os scope=spfile;
and then enable audit for whatever actions you want to capture. All documented in the Security Guide.
Your second question makes no sense unless you explain what you mean by "oracle log".
Maybe you are looking for
-
How can I remotely access my computer from a different location on Apple Remote Desktop?
I downloaded Apple Remote Desktop and am trying to access our computer at our church that is in the auditorium and work on slides for ProPresenter from my office which is on a different network. The Mac Pro, which is in the auditorium, is connected t
-
UK iPhone 3G (o2), moving to the US. I would like to use ATT and my iPhone
Hi there. I own an iPhone 3G. I bought this on Pay as you Go from an Apple store in the UK. In April 2009 I'm moving (permanently) to the US. I was hoping to take my iPhone 3G with me, and use it without having unofficial firmware, or unlocking it on
-
Keyboard not recognized in USB hub after 10.6.3 update
After updating to 10.6.3 (using combo updater) the keys on my Apple extended keyboard that shipped with my 24" iMac (2008) no longer work when the keyboard is connected through my Belkin powered USB hub. But oddly enough, the wireless mouse that is c
-
How can i turn off encrypted backup file if i do have the passowrd?
i have a problem with restoring the backup files on my iphone, it shows me an error message of corrupted process. Now i downloaded Dr.fone program in order to extract the backup files but it does not extract encrypted backup. So i need a method for t
-
I downloaded a Xvid-Player file now how do i run it?
Please help. i downloaded this file but now i dont know how to run it.