Today wrote a few hours of SQL statements, at the beginning I did not train of thought, the idea began to write.First I query the storage table in the 3-level units under the various outlets of the storage information, find this information, I went
In Oracle, indexes are basically divided into the following categories:B*tree Index, reverse index, descending index, bitmap index, function index, intermedia full-text index, etc., most commonly used are B*tree index and bitmap index.(1),
1. Modify the table field type /* modify the name of the name name_tmp*/ALTER TABLE ca_cadocument rename column cd_taskids to cd_taskids_t; */ Add a field with the same name as the original field name name*/ALTER TABLE ca_cadocument add Cd_taskids
First need to have local Sqlplus command, if not need to download the official website can also click I download (decompression readme.txt has installation configuration instructions):in the Oracle official website Download instant Client for OS X.
The error message that the client gets is usually: Ora-12170:tns: Connection timed outAt this point, we can basically be sure that the server is not open 1521 port (assuming you use the default settings)Workaround:(1) If you are in a LAN environment,
SCOPEThe SCOPE clause lets you specify when the change takes effect. Scope depends on whether your started up the database using a client-side parameter file (pfile) or server parameter file ( SPFile).Scope can specify when changes to the system
The conversion of the old and new platform, need to import the old database data into the new database library, due to different versions, looked up some informationDue to the operational principles of Oracle's IMP/EXP components-backwards
--produce a random number of arbitrary sizeSelect Dbms_random.random from dual;-Generate a random number within 100Select ABS (mod (DBMS_RANDOM.RANDOM,100)) from dual;-Generates a random number between 100~1000Select Trunc (100+dbms_random.value *)
In an Oracle RAC environment, use a grid account to performRun asmcmd into ASM command mode, such as:[Email protected] ~]$ AsmcmdAsmcmd>Asmcmd> du//displays all disk space occupied by ASM files in the specified ASM directoryAsmcmd> Ls-ls//Lists the
View Introduction: views are logical tables that are based on a table or multiple tables or views, and do not contain data in it, which allows you to query and modify the data in the table. The table that the view is based on is called the base
Sql>alter system set log_archive_dest= ' +lwk/archivelog ' scope=spfile sid= ' * ';Then close two instances, launch the instance, change the database to archive mode:Sql>shutdown immediate;Database closed.Database dismounted.ORACLE instance shut
. #!/bin/bashset-xsu-oracle >>eonlsnrctl Startsqlplus/nolog >>eofconn/as SysdbastartupexitEOFexitEONWe often use the [Plain]View Plaincopy
Sqlplus EMSSXJK/EMSSXJK
Select COUNT (*) from Sncn_yxyj where create_date like sysdate;
Eof
The SQL
--substr (string, intercept start position, intercept length) = return the intercepted wordSelectSubstr'miaoying',0,1) fromDual--The returned result is: MSelectSubstr'miaoying',1,1) fromDual--The returned result is: m--description 0 and 1 both
1. Character functions:ASCII (x)--Returns the ASCII code of the X characterConcat (x, y)--connect Y to output on XSelect Concat (first_name,last_name) from customers;Initcap (x) capitalize the first letter of each word in XINSTR (' NameName ', ' e ',
ORACLE in fact some of the tables due to the increase in traffic, some of the original planning is not very large data volume of the table, in order to optimize the table from the ordinary table into a partitioned table. Now let's introduce a
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