UNIX timestamp is the number of seconds since '2017-01-01 00:00:00 'GMT, expressed as an integer.
The time in Oracle is date type. The following functions provide two Oracle functions for time conversion.
(1) converting from UNIX timestamps to
Drop user OA cascade; delete an OA account
Drop tablespace weibobox including contents anddatafiles; delete a tablespace to create a temporary tablespace create temporary tablespace weibobox
Tempfile 'C:/APP/hechaojie/oradata/orcl/weibobox. dbf'
System Environment: window7 + Oracle10g + PL/SQL 8.0
Problem description:
1. After oracle is installed and the service is started, PLSQL cannot be used to connect to the database. The interface is blank.
2. Use sqlplus to connect to the
Create a user in Oracle and import all the tablespaces of Scott users to it
1. Back up the tablespace of Scott/tiger usersGo to the console and enter an empty directory.Run the command: EXPAn expdat. DMP is generated later.2. Enter
Installation steps:
1. Download the corresponding real-time client package for your platform. All installations require basic or basic lite packages.2. decompress the package to a single directory, such as "instantclient ".3. Set the Database
Today with PL/SQL to connect to a database old report ora-12541: TNS: No listener error.
Solution:
Refer to the SQL * Plus User's Guide and reference for more information.[Oracle @ vserever75 ~] $ Sqlplus/nolog
SQL * Plus: Release
SQL> select 1-(physical. Value-direct. Value-lobs. Value)/logical. value)2 "buffer cache hit ratio"3 from V $ sysstat physical, V $ sysstat direct, V $ sysstat lobs, V $ sysstat logical4 where physical. Name = 'physical reads'5 and direct. Name =
Configuration of Multi-instance listeners
Three cases:
1. One listener listens to multiple instances on one IP address and one port
2. One listener listens to multiple instances on different IP addresses and ports
3. Multiple listeners listen to
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;
A A zero space------------------------------------65 97
1. Write a Java object and save it in C:/Hello. Java
2. loadjava-user Scott/tiger @ 223 hello. java, set hello. java is added to the database. If the source code is added, we can see from javasource that if the class is loaded, it cannot be seen
In Oracle, date and timestamp are supported. date can be stored in years, months, days, hours, minutes, and seconds.
Timestamp is an extension of date. It can be used to store year, month, day, hour, minute, second, and decimal part of second. the
How to define the cursor typeType ref_type_name is ref cursor [return return_type];Declare cursor variableCursor_name ref_type_name;From the technical bottom layer, the two are the same. Common PLSQL cursor is "static" in definition. While ref
1./* + all_rows */
It indicates that the overhead-based optimization method is selected for the statement block, and the optimal throughput is obtained to minimize the resource consumption.
For example:
Select/* + all + _ rows */emp_no, emp_nam, dat_
Article 10 Oracle Database startup and Shutdown
I. Start data$ Sqlplus "sys/pass as sysdba"SQL> startup
Ii. Start the listenerAfter the database is started, if the listening process is not started, the client cannot connect to the database. The
July 12. 2004.
I met a couple of time the problem. The nearest time was last week.
Solution-from Metalink note.
Problem description:================================Running svrmgrl (or any other Oracle tool such as SQL * Plus) on an IBM AIX
1. Use the thin driver in client software development
In terms of Java software development, Oracle database provides four types of drivers, two types of client software for application software, applets, Servlets, and so on, the other two types are
First look at a conversation:
Cainiao asked:
I set local_listener = 'listener1' In the parameter file, and an error is reported when the database is started.
SQL> startup
ORA-00119: Invalid specification for system parameter local_listener
ORA-00132
MySQL replication and Oracle logical standby are both SQL apply. What is the difference in implementation?Binary log and redo transmission principlesMySQL replication can be easily used for application read expansion, and can also help MySQL
(I) index unique Scan
For exampleIf the table has a unique index, index unique scan is used to search the index column.
The original index unique scan and index range scan have the same search path on B tree.
Only index unique scan stops
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