oracle数据库没有用过,我这里有一个MS SQL,你参考一下看行不行:
SqlConnection mycnn= new SqlConnection("Server=ZHURONGj;Database=学生管理数据库;User id=dazhu2;Password=32010;trusted_connection=true");
mycnn.Open();

if(mycnn.State==System.Data.ConnectionState.Open)
{
MessageBox.Show(" 数据库连接成功!","提示",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Information);
SqlDataReader sdrSchema;
DataTable dtSchema;
SqlCommand cmdTemp=new SqlCommand("select * from 学生情况表",mycnn);
sdrSchema=cmdTemp.ExecuteReader (CommandBehavior.KeyInfo);
dtSchema=sdrSchema.GetSchemaTable ();    //用SqlDataReader 获得一个架构表,表里的内容是一个查询返回的每个列的信息
this.dataGrid1.DataSource=dtSchema.DefaultView;
sdrSchema.Close ();