1 Test2----Pack Create or replace package test_pkg1 is procedure test_p (v_id in sys_user.id%type, v_name in sys_user.name%type, msg out varchar);end test_pkg1;-- Package Body Create or replace package
Start from the Windows desktop → programs → Oracle- → configuration and transpose tools → Database configuration Assistant command, Open the Welcome screen of the Database Configuration Assistant dialog box, click the Next button in the interface
Connect to the remote CDB and prepare the remote PDB for cloning.Select from V$pdbs; con_id DBID NAME open_mode------------------------------------------------------------ 2 1258043702 pdb$seed READ only
[Email protected] ~]$ Vi. bash_profile #. Bash_profile # Get the aliases and functionsIf [-f ~/.BASHRC]; Then. ~/.bashrcFi # User specific environment and startup programs Path= $PATH: $HOME/bin Export PATHUnset USERNAME Export
Sqlplus Linked database:1. Sqlplus username/password @ip address/database name2. Sqlplus username/password @ database nameNote: The second method is to configure the database name in the Tnsnames.ora fileLink Broken Link: connect/disconnectCreated
. Index classificationØ Classification by storage methodb* Tree index: b* tree index is the most commonly used index, its storage structure is similar to the index structure of the book, there are branches and leaves two types of storage data block,
The ADR path is determined by the parameter Diagnostic_dest parameter:sql> Show parameter diagnostic_dest NAME TYPE VALUE--------------------------------------
SUSE one-SP2 installation of ORACLE 11g small problems encountered:1. Run in the database directory./runinstall, after the appearance of the graphical interface, and then point to the next step, to the 3rd or 4th interface, the card is not moving,
Oracle Trunc function handles date formatsSelect TRUNC (Last_day (sysdate)) +29+20/24 from dual--what time of day next month2015/11/29 20:00:00Select Add_months (TRUNC (sysdate, ' mm '), 1) +5/24 from dual--next month number 1th2015/11/1
--Digital type functionSelect ABS ( -100) from dual;--absolute valueSelect mod (10,3) from dual;--moduloSelect Ceil (12.5) from dual;--upper bound integerSelect Floor (12.5) The lower bound integer from dual;--Select Round (12.46327,3) from
Correlation QueryCartesian productEach row of each table that makes the associated operation is combined with each row of the other table, assuming that the number of record bars for the two tables is x and Y, the Cartesian product will return X*y
--Create TableCreate TableT_hq_b (XZINGMVARCHAR2(Ten), ZhuzVARCHAR2( -), Zhis Number, BianhVARCHAR2(Ten) not NULL) (Initial 64K minextents1Maxextents Unlimited);--Add Comments to the columnsComment on columnT_HQ_B.XZINGM is 'name'; Comment on
Use of Oracle display cursor and cursor for loop, oracle cursor for Loop
The following describes the situations in which implicit cursors and display cursors are used:
1. When the query returns a single row record → implicit cursor;
2. When multiple
Differences and exercises between rownum and row_number () in oracle databasesIt is clear that for rownum, it is the number of the row returned from the query that is sequentially allocated by the oracle system. The first row is allocated with 1,
Atitit. attilax Summary of common partition APIs, atititattilax
Atitit. attilax Summary of common partition APIs
1. Api source and oracle and mysql1
1.1. partition definition partition by range (uid) use the values less than operator to set 1
1.1
ORA-04031 error causes downtime case analysis, ora-04031
Today we met an ORACLE database downtime case. The following describes the causes of this database downtime case. In the analysis process, we will record the cause and effect of this case,
Oracle numeric FunctionsNumber function 1, integer function (ceil rounded up and floor rounded down) select ceil (66.6) N1, floor (66.6) N2 from dual; 2, power) and evaluate the square root (sqrt) select power (3, 2) N1, sqrt (9) N2 from dual; 3,
Oracle non-archive mode and archive mode backupInconsistent backup: Because the backup operation cannot be completed instantaneously, while data files are being written at all times, the SCN time is changing, and when the nth data file is backed up,
Pagination of result setsTo make it easier to query data on a web page, it is often displayed by page. For example, the employee table is required to display only five rows of data at a time, and the next five rows are displayed. The following uses
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