Oracle commands create user, authorization, database import, export

Recently in the use of Oracle, often to import export data, commands are simple, but often forget, so write down.Drop UserYfplssCascade;--log on to the system user to delete the existing user name and everything under that user is deleted.--CREATE

Linux OS Install Oracle database

#!/bin/bash#Purpose: Create and config Oracle install.#Usage: Log on as the superuser (' root ')#1. Create groups and users.Groupadd DBA-G 111Groupadd Oinstall-g 110Useradd oracle-u 110-g 110-g 111echo "Oracle" | passwd--stdin Oracleecho "Export tmp=

Manually and automatically start multiple Oracle instances

Manually start two instancesSu-oracleLsnrctl start-Suppose one instance is ITSM and the other is testExport ORACLE_SID=ITSMSqlplus/as SYSDBAStartupQuitExport Oracle_sid=testSqlplus/as SYSDBAStartupQuitAuto-start, can be set in/etc/rc.local, add the

A few useful Oracle statements

1 SELECT ' ALTER TABLE ' | | t.table_name| | ' disable constraint ' | | t.constraint_name| | '; ' From user_constraints t WHERE t.constraint_type = ' R '; 2 SELECT ' ALTER TABLE ' | | table_name | | ' ENABLE CONSTRAINTS ' | | T.constraint_name | | ';

Oracle Small Knowledge

Oracle: Numeric random function is dbms_random.value (maximum, minimum) usage is select Dbms_random (3,0) from dual;Oracle: The function that gets the first 100 is RowNumber Oracle:cast ((NVL (sum (case B.HGXS when B.jcxs then 1 end), 0)/nvl (count (

The non-equal number problem in Oracle

In Oracle, the non-equal sign has the following options:<>,!=,^=Test SQLCREATE TABLE test ( ID int, name VARCHAR2 (Ten), age int) insert INTO test (id,name,age) VALUES (1, ' Zhangsan ', 23 INSERT into Test (id,name,age) VALUES (2, ' Lisi ', ");

About Oracle's functions, stored procedures, triggers, sequences, views, links to some of the applications with cases

CREATE TABLE STUDENT (--Creating student tablesID Number (TEN) PRIMARY key,--primary Key IDNAME VARCHAR2 (20),CLASSNAME VARCHAR2 (20)--Class ID);CREATE synonym STU for STUDENT; --Create aliases for student table student (synonyms)INSERT into STUDENT

[Oracle] Plsql Connecting Oracle

There are a lot of tutorials on plsql connections, the most important of which is the listener and tnsnames two files under D:\oracle\product\10.2.0\db_1\network\ADMIN. After repeated modification and testing, finally succeeded.Listener file:#

"Oracle" deletes the user who is connecting

1. Querying the user's connection statusSelect username,sid,serial# from v$session where username= ' XY1027 ';USERNAME SID serial#------------------------------ ---------- ----------XY1027 22 1XY1027 142 12. Delete them individuallyAlter system kill

Oracle 11g cannot export a variety of workarounds for empty tables

An empty table cannot export an issue:Data Discovery There's a new feature in Oracle 11g : A new parameter "deferred_segment_creation" means that paragraph delay is created, which is true by default . What does it mean

How to recover Oracle stored procedures with the same name after being overwritten

1. Log in to SYSDBA database2. Querying snapshots based on point-in-timeSELECT * from source$ as of TIMESTAMP to_timestamp (' 2014-02-24 05:10:32 ', ' yyyy-mm-dd HH24:MI:SS ') where source like '%CP _eas_costbreakdown_info% ';

Oracle 10-in-turn 36 binary

CREATE OR REPLACE FUNCTION idfms.func_dec236 (parm in INT DEFAULT 0)RETURN VARCHAR2Is/*10 binary number to 36 binary number*/SRC VARCHAR2 (+): = ' 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ '; --Change to another string, which is any binaryLEN INT;Res

NUMBER (x, y) Data Types in Oracle databases

NUMBER (x, y) Data Types in Oracle databases Test preparation Analysis and Experiment 1 processing of decimal part 2 maximum value that can be saved 3 Minimum value that can be saved Summary The NUMBER data type of Oracle indicates a decimal NUMBER,

ArcSDE command, arcsde

ArcSDE command, arcsde 1. sdemon (case sensitive)(1) sdemon is mainly used to manage sde services, including 7 commands. You can enter sdemon-h in the command line to view all sdemon commands. Status: obtains the status of a specified instance.Start

Summary of common Oracle operations and summary of oracle

Summary of common Oracle operations and summary of oracle1. oracle modifies the table name, column name, field type, adds a table column, and deletes a table column: Alert table scott. test rename to test1 -- modify the table nameAlter table scott.

ORACLE records the IP address of the connected user and the IP address of the Login Failed User

ORACLE records the IP address of the connected user and the IP address of the Login Failed User The main function is to record the IP addresses of logon users and the IP addresses of Logon failures in oracle.1. You need to create a trigger to record

Oracle cursor and temporary table usage exercises

Oracle cursor and temporary table usage exercises 1. Create a session-level temporary table:   create global temporary table pact_test( pact_id varchar2(100), pact_code varchar2(100), pact_name varchar2(800)) on commit preserve rows;   2.

Oracle time format and integer format conversion

Oracle time format and integer format conversion If the time field of the Oracle database is set to the "NUMBER" type, the query Time column is displayed as a numerical value, such as the "1241450728000" style, which is not readable; if the update

Five-part oracle learning starter series: memory structure, database structure, and process

Five-part oracle learning starter series: memory structure, database structure, and process Oracle getting started Series 5 Memory Structure, database structure, process1. Oracle Database Structure This topic can be found on the Internet, not to

Oracle divides a column into multiple columns

Oracle divides a column into multiple columnsOracle divides a column into multiple columns In Oracle, we can use listparts (Oracle 11g and above) to merge multiple rows into one column. Now we need to split one column into multiple columns. Create a

Total Pages: 2147 1 .... 1301 1302 1303 1304 1305 .... 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.