next_day (date, char): returns the date of the first day of the week (specified by char) after the specified date (specified by date). Char can also be 1 ~ Replace 7. 1 indicates Sunday.
Duzz $ Scott @ orcl> select sysdate, to_char (sysdate, 'day')
Local Network Service name Configuration:
In the oracle \ oracle90 \ Network \ admin \ installation directory of the client, there is a named file named tnsnames. ora, where the local configuration is stored. when the client is appliedProgramWhen a
Select * From dba_views;Select * From user_views;
Desc dba_source; DESC user_source;Select text from user_sourceWhere name = 'your PKG name'Order by line;Union can remove duplicate records, but union all cannot.In Oracle, how does one call a stored
When creating an instance, you can save it as a template. In fact, you can also use the dbca command to create an instance template and use this function to copy the instance. This feature is rarely noticed.
Here we choose
You can view an all_parameters table in dbsnake's blog. You can use this table to view hidden parameters. But I confirmed later that this table is not available. Therefore, this is a view created by dbsnake.
How to view Oracle parameter categories
The use of group by grouping sets is equivalent to Union all for the set requiring group.
When there are more grouping elements in grouping sets, the performance of using grouping sets is better than using Union all, which may be related to using
Three default users syschange_on_install [as sysdba] systemmanager scotttiger create user create user t0nsha identified by t0nsha; system permission grant create session to t0nsha; grant create table to t0nsha; grant unlimited tablespace
1. First, use the top command to view the spid numbers with more resources
2. query the current time-consuming session ID, user name, sqlid, and so on:Select Sid, serial #, machine, username, program, SQL _hash_value, SQL _id,To_char (logon_time,
After 9i, Oracle can use the dbms_metadata.get_ddl package to obtain the DDL script of the database object. As follows (executed in sqlplus ):
1. Obtain the syntax for creating a single table, view, and indexSet pagesize 0Sets long 90000Set
Sometimes we may have this requirement: Create a trigger on the table, and then when the fields A and B are updated in the table, the field C is changed to a + B, this forms the situation of modifying the base table data in the trigger.
Create a
Oracle stored procedure:
The Pag cursor outputs the search results based on the conditions .. Totalcount indicates the total number of queries.
create or replace procedure DataGridPages(p_zcbm in varchar2,p_fwbm in varchar2,p_zcmc in
Skills for using decode () functions in OracleDescription:
Decode(Condition, value 1, translation value 1, value 2, translation value 2,... value n, translation value n, default value)
The function has the following meanings:
If condition =
-- 1.-- System parameter configuration: connect sys/password @ db_link as sysdbaSelect * From dba_profiles where resource_name like 'failed _ login_attempts % ';-- 1 default failed_login_attempts password 10-- The user is locked for 10 consecutive
--. SQL script-- The only note is that F: \ dropobj. SQL is the operated. SQL;-- Your computer does not have a drive F. Replace it with drive D or E.-- Used to delete all objects of the current user-- Use for drop all objects in current user;Set
-- View
-- A view is a logical table. It is used to view tables and define multiple connections between rows and columns from one or more tables. You can view the data in the table through the view.
-- Create a view
Create view mytest. v_info
Quick recovery area ). The quick recovery area is a new feature of Oracle Database 10 Gb. It is a storage area used to store database-Related File backups, and the recovery component of the quick recovery area can ensure that the database is
In Oracle, sequence is the so-called serial number, which is automatically increased every time it is obtained. It is generally used in places where the sequence numbers need to be sorted.1. Create SequenceFirst, you must have the create sequence or
I started learning Oracle9i today, so I won't talk about installation. Here is the portal. I have a problem with the second dish, and I am out of touch with the traditional installation method. I ignore it, we directly found a RAR download of CD2
This chapter will gradually explain the installation of Oracle 11g R2 and some problems encountered during the installation process. My installation environment is as follows:
OS: cent OS 6.2;
Oracle 11g R2;
VMware 7;
1. Create Oracle user
Oracle
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