Download Oracle Instantclient_11_2 and PlsqlExtract Oracle Instantclient_11_2 to any directoryCreate a new network in this directory, create a new admin in the network directory, and in the installation directory from OracleCopy the Sqlnet.ora and
4 . Stored procedures and triggers:Example 7-1: (stored procedure) creates a stored procedure that shows the total number of students.SetServeroutput onCreate or Replace procedureStudent_count asP1 Number(3);beginSelect Count(*) intoP1
ToolsutilThe number of records displayed per pagepublic static final int num_per_page=5;/** Java.util.Date Turn Java.sql.Date*/public static Date Utildatetosqldate (Java.util.Date d) {Date date = new Date (D.gettime ());return date;}public static
Oracle Notes (10) constraintsAlthough the table is completed, but the data in the table can not be checked, and if you want to do some filtering for the data in the table, it can be done by the constraints, the main function of the constraint is to
This project is an Oracle small data volume migration process share of the CDC, and the results are not displayed. Migrating data is divided into the following steps: Divided into the following five parts:
Source Database Library
ROWNUMROWNUM: Represents a row number, which is actually a column, but this column is a pseudo-column that can appear in each table.Example: On the Query Employee table, add ROWNUMSELECT from EMP;From the running, the ROWNUM itself is in the form
--In the native example:--Global database name: Muna--sid:haha--User: Znn (permission Connect, RESOURCE,DBA)--Table space: Haha_data and temporal tablespace haha_temp--Oracle has two built-in users: System and SYS--Querying all users in the
First, special functions1:NVL functionNVL (STR1,STR2), if the first parameter of Oracle is empty then the value of the second parameter is displayed, and if the value of the first parameter is not NULL, the first parameter value is
Completely remove the original Oracle in Windows and then reinstall the Oracle database. The steps are as follows:1. Start-> Setup-> Control Panel-> Management Tool-> Service to stop all Oracle services.2. Start-> Program->oracle-orahome81->oracle
--Modify the Data Oracle field type from number to varchar--Example: Modifying the Rescue_phone field type in the Ta_sp_org_invoice table, converting from number to varchar--STEP1: Add an original type buffer fieldALTER TABLE Ta_sp_org_invoice add
If you have the following table structure AAAA, use a field prev_id to indicate the order of the records, to sort them, need to use the recursive function
Id
prev_id
CONT
99
A
Log on to the operating system where the Oracle database server is installed.Windows: Use cmd directly to enter the command line. Linux, log in to the database server using SSH first.View Environment Variables Settings for
method One: Regexp_replaceSelect T.achive_name,regexp_replace (T.achive_name, ' [^0-9] ') from T_archive_content t where t.plan_id= ' 402881ef5f702d62015f7128f2760089 ';Tags: regexp_replace The parameter description of the regular function:A total
REGEXP_SUBSTR Functions in OracleInstructions for using the REGEXP_SUBSTR function in Oracle:The topics are as follows:In Oracle, a statement is used to implement the ' 17,20,23 ' split into a collection of ' 17 ', ' 20 ', ' 23 '.The REGEXP_SUBSTR
11G R2 RAC add listen, 11gr2rac listen
The procedure is as follows:
Check the network number of the default network, in the red font of 1. It will be used to add a listener later:
[grid@rac121 admin]$ srvctl config networkNetwork exists: 1/10.1.252
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