1. List all tables for the current user:
SELECT * from tab;
2.sqlplus can also execute commands on the operating system itself. The command format is: HOST operating system command
For example, open the Windows registry, use: Host regedit; Open the
I. Demand
when will an Oracle cursor be used, and the For, loop, if?
Let's look at one such requirement:
There is a Student class table t_teaching, each student has several courses:
Primary Key ID (self-increasing)
Course Number
Oracle Database system users forget their passwords.
D:\oracle\ora92\bin>sqlplus/nolog
Sql*plus:release 9.2.0.1.0-production on Thursday August 16 11:32:22 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Sql> Conn/
The following should be used by everyone.
Sql> SELECT SID from v$mystat WHERE rownum = 1;
Sid———-19949
The following is simpler, but can only be used in Oracle 10g and above.
sql> SELECT USERENV (' SID ') from DUAL;
USERENV (' SID ')————–19949
java-oracle Stored procedure knowledge Puzzle
A stored procedure is a collection of SQL statements that is saved to accept or return user-supplied arguments. In daily use, complex business logic and operation of the database are often encountered,
preparatory work:
Install Oracle Database on the machine, which is 11g, and is said to install only the client. then download the corresponding cx_oracle, so that Python can support Oracle, the first test using Python to connect Oracle may be
Bitmap indexes apply to low cardinality (low-cardinality) columns, and the so-called low cardinality column means that the column has very few desirable values.
Problem with bitmap indexing:With a bitmap index, one key points to multiple rows,
Scope limitations for Oracle VARCHAR2
Varchar2In the table is 4000, in the process can be 32KThe VARCHAR2 in the process is not the same as the VARCHAR2 in the table and exterior.The length of the VARCHAR2 variable in the process can reach 32K, for
Today, when you help developers demon install Oraclexe, there is this tip:
Destination folder:d:\oraclexe\
port for ' Oracle Database Listener ': 1521
port for Oracle Services for Microsoft Transaction Server ': 2030
Port for HTTP listener:8080
As
Oracle database Start and stopLog in as an Oracle userAfter logging in, enter the following command:Oracle-> Sqlplus/nologSql*plus:release 9.2.0.1.0-production on Monday April 26 09:42:00 2004Copyright (c) 1982, 2002>>, Oracle Corporation. All
Preface: Install Oracle times wrong on your own system, so record it.
Environment:WIN10 x64Oracle 11g installation PackageError: Solution: With https://www.cnblogs.com/yuxiaole/p/9349283.html1 found that it does not support the win 10 system,
Last quarter all months:SELECTTo_char (Add_months (Add_months (TRUNC (Sysdate,'YYYY'), A* 3),-ROWNUM),'yyyymm') Last_q from(SELECTTo_char (Sysdate,'Q')-1A fromDUAL) CONNECT byROWNUM 3 ORDER by 1;All months of the quarter: SELECTTo_char
Split function One:String segmentation:Create or Replace function get_strarraylength(Av_str VARCHAR2,--the string to be splitAv_split VARCHAR2--Separator symbol)return numberIsLv_str VARCHAR2 (1000);Lv_length number;BeginLv_str:=ltrim (RTrim (AV_STR)
###I. Architecture1. Database: Only one database2. Example: a process running in the background3. Tablespace: Logical storage unit4. Data files: Physical storage units5. Users: User-oriented management, the user to manage the tablespace, the user
Monitoring the number of Oracle connectionsUse Python scripting to monitor the number of Oracle connections, connect Oracle to install the Cx_oracle module, check for normal after installation is complete, no information returned as normal;python -c
Some people may re-install the system for a variety of reasons, but there are always some more important software in the system can not be used after reloading. such as Oracle database, it is well known that the database if through the DMP import
Data export:1 full export of database test, user Name System Password Manager exported to D:\daochu.dmp file=d:\daochu.dmp full=y2 Exporting the system user in the database to the SYS user's tablefile=d:\daochu.dmp owner= (System,sys)3 Exporting
Foreword: The MAVEN project needs to add Oracle dependencies to the Pom file.
If error: The report can not find the driver; java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver. Here's a solution.Solution :
Find the Oracle
Checking Monitor:must is configured to display at least-colors >>> Could not execute auto Check for display Colors using Command/usr/openwin/bin/xdpyinfo. Check If the DISPLAY variable is set. Failed 1. Enter Root first:Su–rootPassword:xxxxxdisplay=:
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