Database large segment (CLOB, BLOB) is not suitable for storing more than 1MB of dataTypically, the database provides a large segment type such as Clob,blob,text,long to hold more than 4K of data, however this does not mean that large fields should
Here is the conversion function
To_char
Select To_char (sysdate, ' yyyy ') from dual;Select To_char (sysdate, ' Fmyyyy-mm-dd ') from dual;Select To_char (sysdate, ' Yyyy-mm-dd ') from dual;Select To_char (sysdate, ' DDD ') from dual;
Requirement: Automatically backs up the Doiido user's database at 23 50 per day, and keeps backup information for 30 days.1: Writing Oracle Environment scripts$ VI oracle_hj.shOracle_base=/doiido/oracle; Export Oracle_baseoracle_home= $ORACLE _base/1
Oracle provides a inverted inverted function reverse, but this function cannot be grouped upside down, this article provides a function that can be grouped upside down, as follows:CREATE OR REPLACE FUNCTION reverse_f (p_str VARCHAR2, P_delimiter
To completely uninstall the oracle11g step:1. Start-> Settings-> Control Panel-> Management Tool-> Service stop all Oracle services.2, Start-> Program->oracle-orahome81->oracle installation products-> Universal Installer, click "Uninstall
1. View the table space and the corresponding nameSql> SELECT file_name,tablespace_name from Dba_data_files;2, query the system users and the corresponding table spaceSql> select Username,default_tablespace from Dba_users;3. Query the table space of
What is consistent reading?Consistent reading refers to a change in the middle that is ignored from the moment of query.Examples ShowFor example, I have two accounts, a, B. A has 1000 pieces and B has 1000 fast. When I query the query speed is
Oracle has to start two services:1.oracleserver***. (' * ' means that the database name is also known as an "instance" and a service represents a database)2.oracleoradb11g_home1tnslistener. (only start this to connect to the database via JDBC)Oracle
Project, use a sequence as a single number, the framework is used by SSH, when the DAO layer to fetch, run times wrong to dual is not mapped,[select *.nextval nextvalue from dual]Later, the inspection found that the way to get the wrong, so change
Scheduled execution of stored procedures in peacetime development often used, years ago when they did a, because the time relationship has not been able to record, is now recorded.First, a complete example is used to implement the stored procedure
Both the Windows environment and the UNIX environment enable automatic database startupIn the Windows environment:The experimental method is relatively simple, by modifying the registry or by using the Oradim command:Oradim-edit -startmode
In the default, the Oracle database under Linux will not boot, but many times we need to boot the database, so we need to set up the following methods:System Environment: CentOS 6.5Oracle Version: 10.21. Modify the/etc/oratab file #
Look at the contents of the table you are using firstSELECT * from YHB;Desired effectConcatenate strings for the isdropout column of times 1Isdropout TimesYes, no, it's 1.1. Using the Wmsys.wm_concat (EXP1) functionThe SQL statements are as
Oracle basics-Index
1. What is indexing?
A: indexes are used in databases to improve query efficiency.
Supplement: too many indexes can greatly reduce the efficiency of DML statements. The indexing principle is to create fields that are frequently
Oracle users unlock lockd
The following error is reported when the user doiido connects to oracle:
ORA-28000: the account is locked
View user statusSQL> conn/as sysdba
SQL> SELECT username, account_status FROM dba_users;
USERNAME
Oracle Auto-start
By default, Oracle databases in Linux do not start on their own, but many times we need to start the Database on their own, so we need to set the settings as follows:
System Environment: CentOS 6.5
ORACLE version: 10.2
1.
Official Oracle and oracle website
We have encountered such a requirement: to input a String for the method, such as "User ID0, user ID1, user ID2... ", then return a result set based on these IDs as a data table for query by others.SELECT * from
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