Usage of the count function in Oracle
Count is used to count the number of records in the query results.
Example Table t_test
Name
Gender
Age
Salary
Zhang San
Male
23
2000
Li Si
ORA-27101: handling of shared memory realm does not exist errors
ORA-01034 and ORA-27101 error messages when trying to connect to the database, it always displays such information,
ORA-01034-Oracle not available"
ORA-27101-shared memory
In the morning, the customer needs to export the full path of some records and records in the category (for example, table A is the master table, table B is the category, and a foreign key sort_id is associated with B, B In addition to the ID and
In Oracle/PLSQL, the trim function removes all specified characters either from the beginning or the ending of a string.
The syntax for the trim function is: trim ([leading | trailing | both [trim_character] string1)
Leading-Remove
How to repeat table structures and table data in Oracle
1. Copy the table structure and data:
Create Table table_name_new as select * From table_name_old
2. copy only the table structure:
Create Table table_name_new as select * From
From http://9494.iteye.com/blog/48553
Introduction:
Generally, the primary keys of tables increase automatically. in Oracle, sequence-based auto-growth is more suitable.
1. Sequence creation format:
Create sequence nameIncrement by 1Start
Oracle data has a field that stores URLs and contains special characters &,If you want to directly perform a query or insert operation, the problem is as follows:
Execute in PLSQL:
Update userinfo set pageurl = 'test. php? Page = 1 & pagesize = 10
Directory (?) [-]
Linux x86/x64:
Windows x86/x64:
AIX:
HP IA64:
HP PA-RISC 64:
Solaris x64:
Solaris x86:
Solaris iSCSI x64:
Solaris iSCSI x86:
Oracle 11.2.0.3 patchset.
Note: This is the complete version and can be installed directly. Use
1. view the Oracle thread: PS-Ef | grep ora
2. What statements are used to query fields?
Select table_name from all_tables;Desc table_name: You can query the table structure.
Select * From all_tab_columns where table_name = '?? '
3. How to query
The listener. ora, sqlnet. ora, and tnsnames. ora configuration files of the Oracle network are all stored in the $ ORACLE_HOME \ Network \ ADMIN directory.
1. sqlnet. ora ----- is similar to the nsswitch. conf file of Linux or other UNIX. It is
PL/SQL single-row functions and group functions
A function is a program with zero or multiple parameters and a return value. Oracle has a series of built-in functions in SQL, which can be called SQL or PL/SQL statements. functions are mainly divided
A function is a program with zero or multiple parameters and a return value. Oracle has a series of built-in functions in SQL, which can be called SQL or PL/SQL statements. functions are mainly divided into two categories:
Single Row function and
Http://doc.linuxpk.com/1198.html
An instance is the name used to manage the memory structure of relevant databases (consisting of SGA, PGA, server processes, user processes, and background processes)
A database is a file (data file, log file,
1. Data Dictionary
The Data Dictionary of Oracle Data is composed of base tables and data dictionary views.
It is usually read-only for users.
Stored in system tablaspace
User SYS
For users, only select
The base table is generated by calling the
How to Get to_date in milliseconds?
Since the date type in Oracle only supports to seconds and does not support to milliseconds, to_date () cannot be retrieved to milliseconds.If you want to get the data in milliseconds, you can use the timestamp
My computer suddenly crashes and I have to reinstall the system. However, my oracle is installed on the d drive, and all the files are still there. I believe it will be restored until the work is completed, I started to complete my database. It took
Start listening: LSNRCTL start/stopStart the service:Su OracleSqlplus/nologConnect/As sysdba(Start :) startup (stop: shutdown immediateOemapp dbastudio open the Enterprise Manager GUIOpen the graphical interface of the enterprise manager on the
Note: Oracle is slow due to unknown reasons.
Recently, it is found that the Oracle server is super slow, and the slow speed is not caused by application performance. Even running proc precompiled programs is very slow. It can be seen that the
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