First, when you want to remove your own table created, if you experience the following prompt: [ORA-00604, ORA-00942]
Please enter the following (I add in PL / SQLDeveloper in, you can see in advance if I have two tables):
1. sys / oracle login, create two tables
--1)-----------------------------------------------------------------
-- Create table
create table ARGUMENT$
(
OBJ# NUMBER not null,
PROCEDURE$ VARCHAR2(30),
OVERLOAD# NUMBER not null,
PROCEDURE# NUMBER,
POSITION# NUMBER not null,
SEQUENCE# NUMBER not null,
LEVEL# NUMBER not null,
ARGUMENT VARCHAR2(30),
TYPE# NUMBER not null,
CHARSETID NUMBER,
CHARSETFORM NUMBER,
DEFAULT# NUMBER,
IN_OUT NUMBER,
PROPERTIES NUMBER,
LENGTH NUMBER,
PRECISION# NUMBER,
SCALE NUMBER,
RADIX NUMBER,
DEFLENGTH NUMBER,
DEFAULT$ LONG,
TYPE_OWNER VARCHAR2(30),
TYPE_NAME VARCHAR2(30),
TYPE_SUBNAME VARCHAR2(30),
TYPE_LINKNAME VARCHAR2(128),
PLS_TYPE VARCHAR2(30)
)
tablespace SYSTEM
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 16K
minextents 1
maxextents unlimited
);
-- Create/Recreate indexes
create unique index I_ARGUMENT1 on ARGUMENT$ (OBJ#, PROCEDURE$, OVERLOAD#, SEQUENCE#)
tablespace SYSTEM
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 16K
minextents 1
maxextents unlimited
);
create index I_ARGUMENT2 on ARGUMENT$ (OBJ#, PROCEDURE#, SEQUENCE#)
tablespace SYSTEM
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 16K
minextents 1
maxextents unlimited
);
-- Grant/Revoke object privileges
grant select on ARGUMENT$ to CTXSYS with grant option;
--2)-----------------------------------------------------------------
-- Create table
create table ASSOCIATION$
(
OBJ# NUMBER not null,
PROPERTY NUMBER not null,
INTCOL# NUMBER,
STATSTYPE# NUMBER,
DEFAULT_SELECTIVITY NUMBER,
DEFAULT_CPU_COST NUMBER,
DEFAULT_IO_COST NUMBER,
DEFAULT_NET_COST NUMBER,
INTERFACE_VERSION# NUMBER,
SPARE2 NUMBER
)
tablespace SYSTEM
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
-- Create/Recreate indexes
create unique index ASSOC1 on ASSOCIATION$ (OBJ#, INTCOL#)
tablespace SYSTEM pctfree 10 initrans 2 maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
create index ASSOC2 on ASSOCIATION$ (STATSTYPE#)
tablespace SYSTEM pctfree 10 initrans 2 maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
2. can successfully delete the table.
**** Note: For details, see the original network, an auxiliary network from the great God: crazy seal the wind;
Second, the error occurred during recompilation / re-verification
[ORA-04045]: is a bug Oracle, do the following fixes to switch to the original user performs a truncate statement.
1. shortcut "window + R", and out cmd, enter the command line, (sys user enters sqlplus) Input:
- sqlplus / as sysdba
- alter system set “_system_trig_enabled” = false scope=spfile;
- alter system set aq_tm_processes=0 scope=spfile;
- alter system set job_queue_processes=0 scope=spfile;
2. Restart the database
- shutdown immediate
- startup
3. The database can be used normally.
**** Note: For details, see the original network, an auxiliary network from the great God: godymoon
Three, Oracle forgotten your username and password (simple / rude)
1. shortcut "window + R", and out cmd, enter the command line, type:
2. Log sqlplus ----- / nolog
3. Connect the access database ----- / AS SYSDBA
4. change password the user SYS IDENTIFIED by the ALTER ----- 123456;
*** Note: the user name sys, the password is 123456.
**** Note: For details, see the original network, an auxiliary network from the great God: wkk_5;
Fourth, if you want to see in Oracle, which users define their own? To Follow Me ~
The following code can be entered one by one :( Look ~ yo)
select * from dba_user;
select * from all_users;
select * from user_users;
Fifth, if you want to see Oracle, the owner of a particular table
You may enter the following code:
select owner from dba_tables where table_name=upper('表名');
Sixth, whether in Oracle wants to build a user table
In establishing the form can use SQL statement, add the user name. Such as:
create table 用户名.表名();
Seven, if Oracle would like, add some user specific permissions on the table
Simple operation in PL / SQL Developer in:
find the corresponding table, right-click -> Edit -> enter
Eight, if you experience the following: form information has been added in Oracle, look in Eclipse, when you call, but always looks no results.
Actually very simple,
when the form is the information we added in Oracle, the following information will be submitted to OK!
- is not surprising, this is a transaction rollback mechanism, like our bank card transfers, if the unexpected happens or transferor is no confirmation can not be successful, which is a transaction rollback mechanism. To be able to finish saving action by insert commit after commit. -
click to see: the specific location submit information
Nine, if there appears for the first time to see the Oracle information, log on again the second time, you can not connect to the database before?
The reason for this situation: we IP address of the computer is floating.
Amended as follows:
1. Check the name of your computer, copy.
Control Panel -> System Security -> System -> Computer Full name
2. Find your own installation of Oracle folder -> Locate the listener.ora and tnsnames.ora, (use Notepad to open), the corresponding value for their modification HOST full computer name.
Click: modify specific information about the location
3. Oracle listener server restart.
4.OK.