Oracle Primary Data types
Overview: The data types supported by various databases are similar, and may differ slightly from the data types in standard SQL languages
Type: VARCHAR2: You can set its length limit when declaring a field. And after
Oracle packages are divided into package specification and package body
First: Create a package specification
Create or Replace package P_pagewithgroup is
--Author: Xiaowei
--CREATED:2014/3/18
--Purpose: grouped paging process
TYPE Type_cur is
Because the AWR report is very long, it is impossible to see the word from beginning to end, to have a choice to see the key part. It is best to compare the AWR report to the normal situation of the system and find the difference. The following is
1. Choose the appropriate Oracle optimizer
There are 3 Oracle optimizer types:
A. Rule (rule-based) B. Cost (based on costs) c. CHOOSE (optional).
Set the default optimizer to pass various declarations of optimizer_mode parameters in the Init.ora
Triggers can be created inside Oracle DBA Studio Tools
CREATE TRIGGER name Create trigger-creates a new trigger Syntax CREATE TRIGGER name {before | After} {event [OR ...] } on table for each {ROW | STATEMENT} EXECUTE PROCEDURE func
Join order in the 1.WHERE clause: Oracle parses the WHERE clause in a bottom-up order, according to which the connection between the tables must be written before the other where conditions, and the conditions that can filter out the maximum number
When the index is too fragmented, it affects the speed at which the query is executed, which affects our productivity. The most advantageous measure at this time is to rebuild the index. This article mainly introduces the process of examining index
Event: The report interface database was suddenly unable to connect, resulting in an inability to count operations properly. Exception information: Io exception: Got minus one from a read call analysis: The database address and its configuration
(Table Space indent script)]
--1, get tablespace information that needs to be freed (contains Oracle database own table space)
--drop table System.tbs_detail;
CREATE TABLE System.tbs_detail as Select
A.tablespace_name,
a.bytes/1024/1024 "SUM_MB"
/* Execute an INSERT statement and pass the parameter * *Create or Replace procedure P_test2 (i in number) asBeginINSERT into t values (I, ' X ' | | To_char (i));CommitEndaaabbbString Driver = "Oracle.jdbc.driver.OracleDriver";String strURL =
On the AIX platform, Oracle software that is tar from the RAC environment is directly extracted to the new machine and the target environment is stand-alone, and the RAC option needs to be turned off.
RAC off
1. Login as the Oracle software owner
-Create a student table, set the primary key for the table to be the numberCREATE TABLE Student (Sno VARCHAR2 (Ten) PRIMARY KEY,--column-level constraintSno VARCHAR2 () CONSTRAINT sno_pk PRIMARY KEY,--column-level constraint with constraint
PS: The following are the most common basic management commands for Oracle 11g, including creating users, table spaces, permission assignments, and so on. The following commands I have verified the operation, and added my summary and instructions.1.
Http://www.cnblogs.com/xnzhao/p/6114469.htmlOpen SqlplusPlease enter user name: System/sys as SysdbaThen (unload data) Enter:sql> shutdown Normalwill appear:ORA-01109: Database is not openThe database has been uninstalled.The ORACLE routine has been
Oracle on linux multiple servers can be installed with a single copy of multiple clones, simple and fast. ******************************************************* 1. Check if the following packages are installed ***************************************
Through this software, create a SQL Server database, the previous database has been ORCL, that is, Sqlplus SYSTEM/ORCLAfterNAME---------ORCLThis is true, but after you create the new database, it looks like this:The PL/SQL developer now used can be
The first type:In PL/SQL, execute the explain that you want to optimize in the Plan window. Results, such as:The hit index name is displayed in the Object Name column, and the cost column shows the CPU usage (%).The second type:Use the explain plan
To connect to a database step:1. Registration driver (only once)2. Establishing a connection (Connection)3. Create a statement that executes SQL (Statement)4. Execute the statement5. Processing execution Results (RESULTSET)6. Releasing
1, Enter the command under Oracle User:NETCA, enter the installation interface, select "Listener configuration", click " Next"button2.Select "Add" and click"Next" button3, the default listener name, click on the "Next" button4, by default, select "
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