There was a problem writing the Oracle stored procedure a while ago.Originally written like thisIf 1=2 ThenNullElseIf 1=3 ThenNullEnd If;The ElseIf does not change color in the PL/SQL editing environment, stating that it is not a keyword.Later
In daily management of Oracle, backups need to be tested regularly to detect the availability of backup files. The following is a brief introduction to common recovery scenarios.First, pre-backup preparatory work1. View the location of the parameter
64-bit win7 with PL/SQL, often meet "Could not load" ... \bin\oci.dll "" This error, I checked the information because PL/SQL only supports 32-bit OS, The workaround is to load an additional Oci.dll file with the following actions:STEP1: Download
One, compressed table spaceThe compressed tablespace is implemented by compressing objects within the table space. The compression of data is reflected in the data block, which is simply to reduce I/O and improve performance performance by clearing
Many of the experiments in Oracle are carried out in the case of damage to specific blocks.The common DD command can only specify blocks from block 1th to how many blocks, and cannot specify a specific blockSimilar to the following command, this is
------------------------1. Simple SQL query--------------------------SELECT * from EMP;Select Empno,ename,job from EMP;Select ' number is: ' | | Empno | | ' Name is: ' | | Ename from EMP;Select distinct empno, ename from EMP;Select
SELECT * from EMP;--1. Identify 30 of employees in the departmentSELECT * from emp where deptno = 30;--2. List the names, changes, and department numbers of all clerks (clerk)SELECT * from emp where job = Upper (' clerk ');--3. Identify employees
This article is divided into two parts, 1, the operation of the database through SQL statements. 2. Working with databases through DDLAn ODBC-based connection to Oracle1) Control Panel, management tool->ODBC data source, add Oracle Data source in
Ideas:Record the current maximum serial number for the next fetch using a serial number table. Each time the number is taken, the serial number table is updated to large.Tables involved:Serial Number Table Hp_no:
To view the relationship between a user and a default table spaceSelect Username,default_tablespace from Dba_users;--View the tables that the current user can accessSELECT * from User_tables;--oracle Querying user tablesSELECT * from User_all_tables;
The Recycle Bin, as its name implies, is the storage of deleted items. In principle, it is a data dictionary table that places the user's deletion (drop) out of the database object information. Objects that are deleted by the user are not deleted by
--1. Group functions--count (): Number of bars used to count records if there is no record, return 0The--count function can be calculated based on one or more columns, without the function of a row weight--How many records are there in the
The Oracleoradb11g_home1tnslistener service on the local computer starts and then stops the solution. (My system is win7-installed Oracle 11g)1. Error description: The Oracleoradb11g_home1tnslistener service on the local computer was started and
SELECT * FROM V$sqlarea t ORDER by t.last_active_time DESCNote: Some related statements, such as executing this statement, must have DBA authority although this statement is common but useful when needed to detect a person executing a SQL statement
First, Use system User Login Sql*plus , use the command to Scott The user unlocks and Scott The user's password is modified to: T_ three digits after your study number (ex: t_165). Then, connect the database to the Scott user. 1. use system User
Recently, the company is doing Oracle database related products, here to summarize:ISNULL () functionGrammarISNULL (Check_expression, Replacement_value)ParametersCheck_expressionAn expression that will be checked for null. Check_expression can be of
The shared pool can be said to be a very important power resource in the database, which is related to the performance bottleneck of the database.what is a shared pool? The shared pool is part of the SGA (System global Zone) in the memory structure,
--Create UserCreate user Han identified by Han default tablespaceUsers temporary tablespace Temp;Grant Connect,resource,dba to Han; Grant users the right to Han developers--------------------the operation of the
Oracle cursors Use the full solutionThis document contains almost every aspect of Oracle cursor use, and all passes the test--Cursor cursor_name is select_statement--For loop cursors--(1) Defining cursors--(2) Defining a cursor variable--(3) using
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