Service-side Character Set modification 1, confirming the service-side character set1 Select userenv ('language' from dual;2. Modify the service-side character set to first log in to Oracle as a DBA. Run commands directly under the Windows system
The following tests are based on the EMP table under the Scott userFirst Test with a while loop and insert 999 data into the EMP table1 Declare2I Emp.empno%Type:=1;3 begin4 whileI +5 Loop6 Insert intoEMP (empno,ename,sal)Values(
Implementing select Top N in Oracle:Because Oracle does not support the SELECT top statement, it is often used in Oracle with order by and RowNumTo implement the query for select top N.To put it simply, the implementation method is as follows:Select
--Create a userCreate user xiaoyi identified by root;--Modify the user's passwordAlter user xiaoyi identified by root;--View the table space owned by the userSELECT * from Dba_users t where t.username= ' Xiaoyi ';--Create a table spaceCreate
--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
1- save Excel file as (text file (Tab delimited) (*.txt))2- Open PL/SQL Create temp table jh_info, Open tool - text Importer3- Open the file location in the upper left corner, select the prepared txt file, and open it. 4- Switch to Oracle data,
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
If you need to access a non-native Oracle database, you first need to install an Oracle client, I install the server version of Oracle directly, and also bring my own client.After the installation is complete, if you access the local server, it can
Oracle Recovery method for accidental deletion of dataLearning the database, we are just learning attitude, consider how to use the database command statements, did not think about the work, if the wrong operation, can lead to irreparable loss. When
This article transferred from: http://blog.csdn.net/ludongshun2016/article/details/71453125The fields in the database are number types, and the corresponding integers and bigdecimal in the Java type will appear;The test found that when the database
First, about Oracle's profilesThe profiles file is a configuration collection of password and resource restrictions, including CPU time, I/O usage, idle time, connection time, number of concurrent sessions, password policy, and so on resource usage
First, the introduction of Sql_trace--Open trace file settings and set SQL Trace to True to add a TRC file to the Udump directory.Alter session set Sql_trace=true;Show parameter Sql_trace; (SELECT * from V$parameter where name= ' sql_trace ';)Does
There are more than one way to connect a database remotely. The main writing here is how to remotely connect to a database using the Plsql Visualizer without Oracle installed locally.First, the premiseFirst you have to install the Plsql tool locally.
There is a new feature in ORACLE 11G that does not allocate segment when the table has no data to save space.Workaround:1) Insert a row, and then rollback will produce segment.The method is to insert data into the empty table and then delete it,
Recently, because the table space of the customer data in the business is occupied too large, and want to reduce the size of the tablespace file by deleting some data, it is possible to use partition table to implementPartitioned tables are divided
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