1. using %TYPEIn many cases, aPL/SQL variable can be used to store data in a database table. In this case, the variable should have the same type as the table column. For example, the first_name column of the students table is of type VARCHAR2, and
Oracle MinuskeywordMinuskeyword in SQLThere is a minuskeyword in SQL that uses two SQL statements to find out the results of the first SQL statement, and then see if the results are in the results of the second SQL statement. If there is, then this
A: PrefaceSince the internship, basically did not press the heart to summarize the knowledge point of their own, just good now soon National Day, not to Shenzhen business, in the company stayed three days, it can be said in the company played three
1. Query the number of connections to OracleSelect COUNT (*) from v$session;2. Querying the number of concurrent connections for OracleSelect COUNT (*) from v$session where status= ' ACTIVE ';3. View the number of connections for different
This article is only used as a memo, without practical guidance, logic is slightly chaotic.1, command show parameter name;Sql> Show parameter Name;name TYPE VALUE-------------------------------------------------
Wrote a stored procedure, which used a function, the function has a section of To_date (Datefrom, ' Yyyy/mm/dd '), after the run to find data insertion error, inserted data for "0001/9/14." Feel baffled, do not know why this is the data, after
/*TRUNC (Number,num_digits)Number requires a truncated rounding.The num_digits is used to specify the number of rounding precision. The default value for Num_digits is 0.TRUNC () function is not rounded when truncated*/The use of the--oracle trunc ()
To view the execution status:Select the code to press F5 directly, or click Tools===>>explain PlanI. Considerations for indexing:Indexes are useful when any single query retrieves less than or equal to 10% of the total number of rows in the table.
SetLinesize -SetPageSize $columnblocker format A10columnblockee format A10columnblocker_sql format A30columnblockee_sql format A30columnblocker_machine format A30columnblocker_program format A30columnblocker_event format A30columnblockee_machine
The database and the client are on different machines.Before installing, navigate to the following folder on the server where the Oracle database is installed.Change localhost in Listener.ora and Tnsnames.ora to the IP address of the machine, my 192.
SELECT a.ID, B.iddFrom A, BWHERE a.ID (+) =b.iddEquivalent toSELECT a.ID, B.iddFrom A right OUTER JOIN B on (A.id=b.idd)Sql> select * from A; ID VAL---------- ---------- 1 A1 2 A2Sql> select * from B; IDD
TermsFull database backup: Includes all data files and at least one control file (remember that all control files in the database are the same)Partial database backup: May include 0 or more tablespace, 0 or more data files, may or may not include
Query and compile data dictionaries in oracle
If you need to write a data dictionary during project delivery, you can use the following method to first run a line-by-line SQL statement.
Select. TABLE_NAME AS table name,. COLUMN_NAME AS field name,
IT Ninja Turtles OracleDBA common query Enumeration
-1. query all objects in the systemSelect owner, object_name, object_type, created, last_ddl_time, timestamp, statusFrom dba_objectsWhere owner = upper ('Scott ')
-2. view all tables in the
Oracle Database deletion and import methods
1. Start-run-cmd, and then input sqlplus/as sysdba to connect to the database;
2. delete a user: enter drop user eqm cascade in the dos window;
3. Delete tablespace: enter drop tablespace eqm including
Oracle Performance Analysis 7: Use of Indexes
This section describes how to use indexes. First, it describes how to avoid using indexes in queries, then how to determine whether the optimizer uses indexes, and how to forcibly use indexes, finally,
Overview of Oracle Architecture
This document describes the architecture of oracle from the Internet.
1 oracle databases mainly consist of data file databases and database instance instances. The User links to the server process through the
Oracle online extended partitions
In the Partition Table operation, when a partition already has the largest partition, how can we expand the partition again? The simple method is to delete the maximum partition first, then add the required
Difference between Oraclealterindexdisable and unusable
Alter index index_name disable, enable for function indexes.
SQL> create table test as select * from all_objects;SQL> create index ind_t_object_id on test (object_id) nologging;
SQL> exec
Oracle Memory Structure
The memory structure of Oracle is divided into SGA and PGA. SGA is dynamically allocated. It is configured by the sga_max_size parameter and allocated when the oracle database instance is started, share an SGA for all session
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service