Created
September 7, 2017 03:22
-
-
Save vigack/f7863b5a9ee82dcf73dc237a40bee6dc to your computer and use it in GitHub Desktop.
connnect oracle databse use oci8
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
require 'oci8' | |
conn = OCI8.new('username', 'password', 'host:port/service') | |
table = conn.describe_table('tableName') | |
table.columns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment