Dual is a virtual table used to form the select syntax rule. oracle ensures that there will always be only one record in dual. We can use it to do a lot of things, as shown below: 1. To view the current user, you can execute the following statement
I often read some articles to solve many of my own problems, but I am always embarrassed to read the articles that others read. After all, I learned others' experience and improved myself, but I didn't share it with others. I also want to write some
1. You have logged on to sqlplus/as sysdba: C: \ Documents and Settings \ Administrator> sqlplus/nolog SQL * Plus as a dba: release 10.2.0.3.0-Production on Wed Mar 28 00:21:32 201 Copyright (c) 1982,200 6, Oracle. all Rights Reserved. SQL> conn/as
Database usage: oracle tablespace operations1. view the space used by the database table select tablespace_name, sum (bytes)/1024/1024 from dba_data_files group by tablespace_name;2. view the remaining tablespace in the database SELECT
-- Create a connection to create database link name (dblink) connect to database username identified by "password" using 'Connection string'; if you create a global dblink, you must use either mongom or sys, add public to the database. Create public
Suppose there is a table TEMPSQL> SELECT * from temp; id info ---------- limit 1 aaa 2 bbb 3 ccc SQL> delete from temp id = 1; 1 row deleted SQL> COMMIT; commit complete SQL> SELECT * from temp; id info ---------- restore 2 bbb 3 ccc restore Data
Today, I encountered an Oracle varchar2 Sorting Problem: my current project is an integrated customer service system that needs to interact with multiple external systems. An external system provides us with a sorting field of the varchar2 type.
SAP programs (such as R3trans, tp, wp, etc.) connect to the Oracle database in three steps: 1. use OPS $ to log on to the Oracle database. Use OPS $ to verify the operating system. Set the OS _authent_prefix and remote_ OS _authent parameters on
Tables store information about associated databases. Only Oracle databases can read and write these tables. Most users cannot access these tables because most of the data is stored in encrypted format. The following query returns all objects in USER
Oracle implementation Stored Procedure return query result set method -- Implementation Stored Procedure return query result set method, the following code from the network finishing
Oracle simple query statement 1. select * from emp where deptno = 30; 2. select all employees in department 30. list the names, numbers, and department numbers of all clerks. select ename, empno, deptno from emp WHERE job = 'cler'; 3. select * from
Programmers often need to connect to the database to talk about the oracle database client and server Character Set consistency problem, which can solve Chinese garbled characters, other character garbled problems mainly refer to in sqlplus, I do
Try to change the access pathIf an SQL statement causes sorting, it usually performs a full range scan. The following SQL statement: Select * from product where item_cd like 'AB %' and category like 'C % 'order by item_cd desc. Due to the sorting
Log File Management and nologging implementation The purpose of this experiment is to verify the principles of the learned log files and manage and maintain log files. how to Reduce log generation. some subsequent syntaxes are used to overcome them.
Oracle modify character set view oracle server code: select * from sys. nls_database_parameters; check the client code: select * from sys. nls_session_parameters; modify the client encoding: open the runner and go to the Registry to edit and run --
Create or replace procedure pro_cursor_type_Vast_tmp table3 % rowtype; type c_type is ref cursor; cur c_type; v_taname varchar2 (100); begin www.2cto.com v_taname: = 'a '; open cur for 'select * from table3 where taname =: a order by taid desc '-- a
Oracle experiment: Use bbed to restore the entire process of accidental deletion records. 1. Prepare the test environment: SQL> create table c as select * from dept; Table created. SQL> select * from c; deptno dname loc ---------- ------------ ------
UnlockAlter user scott account unlock; Set PasswordAlter user scott identified by m123; LoginConn scott/m123; DisconnectDisc Change PasswordPassw Description of current userShow user
Connection commandConn system/manager (switch user)Disc is
Introduction to the advantages and disadvantages of Oracle Database indexes the following articles mainly introduce the advantages and disadvantages of Oracle Database indexes. We all know that Oracle Database indexes can be divided into clustered
Oracle table unlocking method 1. obtain the sid. The serial parameter used to unlock select s. username, s. osuser, s. sid, s. serial #, p. spid from v $ session s, v $ process pwhere s. paddr = p. addr and s. username is not null; select 'alter
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