Skip to content

Instantly share code, notes, and snippets.

@askinss
Created September 24, 2013 12:22
Show Gist options
  • Save askinss/6683964 to your computer and use it in GitHub Desktop.
Save askinss/6683964 to your computer and use it in GitHub Desktop.
script to delete msisdn from a databse table
imsi = Array.new
f = File.open("/home/bblite/portedmsisdn.txt")
f.each_line {|line| imsi.push line}
conn = OCI8.new(DB_USER, DB_PASSWORD, DB_SERVER)
ported = conn.exec("del from subscriber where '#{imsi[0]}'")
conn.logoff
@bjhaid
Copy link

bjhaid commented Sep 24, 2013

please refer to my update at: https://gist.github.com/bjhaid/6684000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment