SQL for Oracle Month calendar

Select Max(Sun) Sun,Max(Mon) Mon,Max(Tue) Tue,Max(Wed) Wed,Max(Thu) Thu,Max(Fri) Fri,Max(Sat) SAT from(SelectDecode (D,1, DD) Sun, decode (d,2, DD) Mon, decode (d,3, DD) Tue, decode (D,4, DD) Wed, decode (d,5, DD) Thu, decode (d,6, DD) Fri, decode

14th Day of Oracle Learning

Today the system officially on the line, busy three months finally some harvest. Special trip to take photos, various opening ceremonies ... Last night, the bus to the station 5:30 this morning.Tried a few Oracle tools, the native SQL developer

Oracle user creation and permissions settings

Permissions:Create sessionCREATE tableUnlimited tablespaceConnectResourceDbaCases:#sqlplus/nologSql> Conn/as sysdba;Sql>create user username identified by passwordSql> Grant DBA to username;Sql> Conn Username/passwordSql> select * from

Zabbix Storage Oracle

Background Description:1, the original installation Zabbix is in the lamp environment is able to operate normally; (Linux CentOS 7)2, now want to replace MySQL with Oracle, through the installation of Oracle client remote access to another machine

12th Day of Oracle Learning

This week just two systems on-line, a few days overtime to midnight, this weekend finally relaxed, can rest at home, fill a complement Oracle, or the previous tutorial, see "Update and transaction processing", look at the edge update it1, Insert:

C # Get the return value of an Oracle stored procedure

stored procedure Create OR REPLACE PROCEDURE ADMIN. Insert_obj (objefirt_parms in NVARCHAR2, objedatt_parms in NVARCHAR2, objesect_parms in NVARCHAR2, objecontent_parms in NVARCHAR2, isrelease_parms in INTEGER, objecode_parms in NVAR CHAR2, tags_

Oracle's third day

Helloworld.sqlSet Serveroutput onDeclare--Description sectionBegin--ProgramDbms_output.put_line (' Hello world ');End/If statement. sql--Determine the number of user inputSet Serveroutput on--Receive keyboard input--num: Address value, at which the

Oracle 10g for Linux

dba

1:root User execution: Df-k/tmpFree space is greater than 400M can2:cat/etc/issue command to view Linux versions3:uname-r command to view the kernel4: Check the relevant packagesThe command is: RPM-Q related package5: Build two

Use of Oracle Database

dba

"Oracel method for creating tablespaces"--Create a permanent table space--Create tablespace table space name (for example: Table_1)DataFile ' file path and filename (such as: F:\java\Oracle tablespace. dbf) ' Note: The suffix is BDFSize table space (

Building Oracle Virtual Environments

In many books about Oracle's database management, it's often said that you want to put different types of files on different disks. In the process of individual self-study, it is not possible to implement multiple disks. Here's how to construct a

Oracle Fallback table Space cleanup

1. View the existing table space and find the fallback tablespaceSELECT * from dba_tablespaces WHERE contents= ' UNDO '2. Create a new fallback tablespaceCreate undo tablespace undo_rbs1 DataFile ' E:\oracle\product\10.2.0\oradata\orcl\UNDOTBS02.

Oracle Next_day,add_month functions

Next_day () Gets the date of the next one days of the current date, from the literal meaning easily understood to be the date of the following day to get the current date. For example: Select Next_day (to_date (' 20160330 ', ' YYYYMMDD '), 1) from

Expansion of Oracle Tablespace

--Table Space usage QuerySELECT TBS table space name,SUM (totalm) total size M,SUM (USEDM) has used space m,SUM (REMAINEDM) remaining space m,SUM (USEDM)/sum (Totalm) *100 percent used,SUM (REMAINEDM)/sum (totalm) *100 remaining percentageFrom

Oracle Common related SQL statements

First, Oracle common related SQL statements1. Connect to the databaseSu-oracle-c "Sqlsplus User/Password Note: First time login with Sqlplus/as SYSDBANote: Close the database: Note: Shutdown can be turned off option, from the mildest to the most

Oracle archiving and Flash back switches

First, the archived switch1. Check if the archive is open:sql> archive log list;2. Set the archive pathSql> alter system set log_archive_dest_1= ' LOCATION=D:\ARCH2 ';3. Open Archivesql> shutdown immediate; --Close the databasesql> startup Mount;

Oracle database Startup and shutdown in Linux

Sometimes you need to restart the Oracle database on Linux.Note Start the database first, and then listen on the startup database.Su oraclesqlplus/nologconnect/as sysdbastartup//exit Sqlplusexitlsnrctl start//shut down the database before opening

Oracle database creation table, sequence and add code case

CREATE TABLE CDPT (ID Number (6),Name VARCHAR2 (30),Constraint pk_id primary key (ID));Change the delay segment creation attribute of the database to false to execute this sentence in SQL plusALTER SYSTEM SET Deferred_segment_creation=false;Create a

Strange "no equals" in Oracle

In Oracle, there are three kinds of equals: <>,!=,^=For example:SELECT * FROM test where name<> ' xn '. The returned result is a record where name is not xn and name is not empty. But this is not the same as what we want to get, because our goal is

Left Association in Oracle

What is the cause of the large amount of empty data that sometimes occurs when you use the left association?This is because the field in the primary table is empty until the primary table is associated with another table, and then the field

Installing Oracle under CentOS

1 , in the installation Oracle before installing the following component packages first, enter the following statements directly. Yum Install binutils*-yYum Install compat-lib*-yYum Install gcc*-yYum Install glibc*-yYum Install ksh*-yYum Install

Total Pages: 2147 1 .... 2011 2012 2013 2014 2015 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.