--determine if the table exists and delete if it existsDeclareNum Number; begin Select Count(1) intoNum fromAll_tableswheretable_name= 'EMP' andOWNER='SCOTT'; ifNum=1 Then ExecuteImmediate'drop table EMP'; End if; End; /
For unknown processes to crs_stop-f the process nameStart againCRS failed to start Crs_start-all Crs-0184:cannot communicate with the CRS daemon.Because Crs_start is an application-level directive, it fails when it starts CRS[Email protected] ~]$
View the current user's table space[SQL]View Plaincopy
Select Username,default_tablespace from user_users;
Modify the user default table space[SQL]View Plaincopy
Alter user username default tablespace new table space;
Identify the current state of the system
Model of the system server
CPU the speed and quantity of
Memory size
I/O Equipment Situation
Network status
Number of system users and number of concurrent users
Current system CPU
Before installing the ORACLE-ORACLIENT10G_HOME1 client, with ADO access no problem, after installing the ODP, the automatic installation of oracle-oraclient12home1, and then garbled into???。 Query conditions contain Chinese is not
Questions :Employee table: A (e_id,name,) Department table: B (d_id,d_name) employee-to-Department relationship: C (id,e_id,d_id)SELECT A.e_id,a.name, b.d_name from A INNER joins C on a.e_id=c.e_id INNER joins B on b.d_id=c.d_id;The record of such
ORACLE 11G features a new feature that does not allocate segment when the table has no data to save spaceWorkaround: 1, insert a row, and then rollback will produce segment.The method is to insert data into the empty table and then delete it,
If:Make changes to the table field type.For example, the table name is a, the field is A_namefield compatibility can be modified directly! In this case of incompatibility, there will be an error message:ORA-01439: To change the data type, the column
Oracle Archive logs are often full, represented as/oraarchive this file space occupies 100% people must complain about why Oracle does not have archive maintenance tools, many people directly delete the incident, wrong, Oracle has, and very smart,
Create or replace procedure Qianfeigl_jiaokuandy (Cebenh varchar2, Kehuh varchar2, Hetongh varchar2, v_cur out query_pkg. Query_cur)IsSqlstr VARCHAR2 (3000);Beginsqlstr:= ' Select A.S_CH,A.S_CID,C.S_HETONGH,A.D_CAOZUOSJ from Zw_yingyez a left joins
1, simple Query method of lock table statement Select from where t1.session_id = ORDER by T2.logon_time2, for the results of the above query to unlock, as shown belowAlter Kill ' 382,1125 '3, lock table detailed information querySelect dba_objects.
The first time you use SqlServer2012, the interface and VS2012 style are the same, great!To get to the point, this blog post mainly write a case of your own, using SqlServer2012 's "Import and export data" function to import data tables to oracle11g,
Connection sequence in the WHERE clause of Oracle performance optimization learning notes
ORACLE uses the bottom-up sequence to parse the WHERE clause. According to this principle, the join between tables must be written before other WHERE
Oracle multi-key partition Test
Partitions can be partitioned by two fields. The first column is compared first. If yes, the second column is ignored. If the first column is not met, the second column needs to be compared. This partitioning method
Shared SQL statement for Oracle performance optimization learning notesTo avoid repeated parsing of the same SQL statement, Oracle stores the SQL statement in memory after the first parsing. The memory in the shared buffer pool of the SGA
ORACLE -- partition table data cleaning, oracle -- Partition Table cleaning
The tablespace is in a hurry because the partition table data is increased and no cleanup is performed. It takes a long time to clear data and release space. The procedure
Common Methods for viewing Oracle execution plans-Series 1
The SQL Execution Plan actually represents the specific execution steps of the target SQL in the Oracle database, only by knowing whether the execution plan selected by the optimizer is the
Oracle performance analysis 4: Full scan of data access methods
During SQL statement execution, the Oracle optimizer determines the table access mode based on the statistical information. Generally, there are two basic data access methods: 1) Full
ORA-06575: the package or function NO_VM_DROP_PROC is invalidSQL> drop user aaa;Drop user aaaORA-00604: recursive SQL Level 1 errorORA-06575: the package or function NO_VM_DROP_PROC is invalidORA-06512: In line 21SQL> alter procedure WMSYS.
Upgrade rac10g10.2.0.1 to 10.2.0.5
Upgrade RAC 10.2.0.1 to 10.2.0.5
I. preparation:
Patch package: p8202632_10205_LINUX.zip
Number of nodes: 3
RAC1 RAC2 RAC3
Current node status
Node 1:
[Root @ rac1 bin] #./crs_stat-t
Name Type Target State Host
----
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.