Select To_char (sysdate, ' yyyy-mm-dd hh24:mi:ss '), To_char (Trunc (sysdate), ' Yyyy-mm-dd Hh24:mi:ss ') from dual T;--sy Sdate and Trunc (sysdate) are not the same sysdate at zero of the day 0 minutes 0 seconds equals trunc (sysdate) Select Trunc (
Unix/linux topic: 1. How to view host CPU, memory, IP and disk space? cat /proc/cpuinfocat /proc/meminfoifconfig –afdisk–l2. What are your common process management and host Performance view commands?Ps–efIostat3. Set up DBA and reorganize user
1. Use the top command to see the SPID numbers with the most productive resources first2. Query the current time-consuming session ID, user name, Sqlid, etc.: Select sid,serial#,machine,username,program,sql_hash_value,sql_id, To_char (Logon_time, '
This case is the coffee sales situation input query systemFirst, the data input system:1. Design the Input Information pageThe code is as follows: Coffee Management System--input system Welcome to Input System Coffee name: Suppliers Id:Product Price:
Dual is a virtual table with only one column.You need to use this table when querying for time or date objects.For example: select Sysdate from dual;Because in Oracle, the query statement must have a keyword select ... from tablename; Only the
Oracle regularly backs up the database and deletes the data backed up 7 days ago.1. Create and store the backup directory:Mkdir/home/oracle/data_backupMkdir/home/oracle/log_backup2, edit the script oracle_backup.sh, the content is as
This is an Oracle's column change function: Listagg ()Look at the sample code first:With temp as ( select ' China ' Nation, ' Guangzhou ' to dual union ALL Select ' China ' Nation, ' Shanghai ' city F ROM Dual UNION All Select ' China ' Nation, '
Step one: If open Java is already installed on the system, you need to clean it up and skip the processsudo apt-get purge openjdk*Step Two: Installsudo apt-get install Software-properties-commonStep three: Add a trusted software source:sudo
Oracle 11g-Network ConfigurationWhen we finish installing Oracle, we need a network connection, which of course requires two things: the server and the client. Through the configuration of the two we can achieve network connectivity. So, how do we
Testing the importance of OLR in Oracle 11g clusterCalled an Oracle local Registry (OLR): All node in a cluster have a Local Registry for node-specific ResourcesTest one: Simulate the OLR abnormal loss situation:Here first will OLR Renam[Email
Prerequisites: For OPENJDK and JDK differences and links, see this article anyway, remember that a word jdk is more complete and stable than openjdk.I am using openSUSE 13.1, the default is OPENJDK after installation, the following is the process of
/*The following code is the display width setting for the EMP table*/Col empno for 9999;Col ename for A10;Col job for A10;Col Mgr for 9999;Col hiredate for A12;Col Sal for 9999;Col Comm for 9999;Col deptno for 99;Col tname for A12;Set pagesize 50;//-
Get table: Select table_name from User_tables; The current user's tableSelect table_name from All_tables; All users ' tablesSelect table_name from Dba_tables; including system tablesSelect table_name from dba_tables where owner= ' user name
Small example, convenient for later inspection.Baotou needs to declare: type c_cursor is ref CURSOR;procedureVisitcount (in_date Number, Out_code out Number, Out_desc outvarchar2 ) ist_date Number(8);
1. USEREVN ()
Return the information of the current user environment. The opt can be: ENTRYID, SESSIONID, TERMINAL, ISDBA, LABLE, LANGUAGE, CLIENT_INFO, LANG, VSIZE.
1. Check whether the current user is a DBA. If yes, return true SQL> select
[Cause/trigger factor]
This is because "PASSWORD_LIFE_TIME = 180 days" is set in the default profile in oracle11g by default.
[Impact and risk]
Impact
After the password expires, the business process has an exception connecting to the database,
The operations on the Oracle server are generally as follows:1) install Oracle Server Software
2) create a database (automatically created during installation)
3) configuration listening (automatically configured during installation)
4) Start an
Oracle11g RAC construction in linux (6)5. Verify the root identity of the environment before installation to decompress the grid and database installation packages.
[Grid @ node1 soft] $Su-
Password:
[Root @ node1 ~] #Cd/soft
[Root @ node1 soft] #Ls
Linux system boot oracle self-boot
Log On As root:
$ Su-root
1. dbstart and dbshut of oracle in linux do not respond:
Modify the Oracle system configuration file/etc/oratab: # vi/etc/oratab
/Etc/oratab format: SID: ORACLE_HOME: AUTO
Set the AUTO
This error occurs because the host name and/etc/hosts file are inconsistent. You only need to write the host name and its IP address to the/etc/hosts file and then OK.
Note that the name cannot contain underscores.
In addition to modifying 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