Skip to content

Instantly share code, notes, and snippets.

@vigack
Created September 7, 2017 03:22
Show Gist options
  • Save vigack/f7863b5a9ee82dcf73dc237a40bee6dc to your computer and use it in GitHub Desktop.
Save vigack/f7863b5a9ee82dcf73dc237a40bee6dc to your computer and use it in GitHub Desktop.
connnect oracle databse use oci8
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