Last active
December 17, 2015 05:08
-
-
Save iyunbo/5555490 to your computer and use it in GitHub Desktop.
getting started your Oracle environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo $ORACLE_HOME | |
echo $ORACLE_SID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsnrctl start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlplus "/ as sysdba" | |
# then under the sqlplus console: | |
> startup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlplus username/password@//hostname:PORT/SID | |
# if everything is fine, your should connect to the database, | |
# and the following SQL query will return 1; | |
> select 1 from dual; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment