473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Tables not seen

I have created my tables in a database using a .bat file but when I try to insert data/values into it using toad there is prompt occuring that says that table i just created does not exist but when you look at the schema browser tab the table is there.. Did I miss something? What do you think is the problem? Any help is much appreciated..

Many thanks
Nov 7 '08 #1
14 3331
Pilgrim333
127 100+
Hi,

Can you query from the table from TOAD and SQL*PLUS? Is the table name you are using in your insert statement correct? No weird chars in the table name? What is the exact table name?

Pilgrim.
Nov 7 '08 #2
tnx Pilgrim,

There are no wierd characters in the Table name and Im sure that the name is correct. I just tried the same query that I used in Toad in SQL plus and it worked. What do you think is the problem of my Toad?

Many thanks..
Nov 7 '08 #3
amitpatel66
2,367 Expert 2GB
You will need to check the following:

1. In Which Schema you created a table?
2. Are you logging in to same schema in TOAD in which you created a table?
3. Try querying that table by appending its owner before table name. Say for

Eg: if you created a table in APPS schema then query a table by saying

Select * from APPS.<table_name>
Nov 7 '08 #4
Pilgrim333
127 100+
Hi,

You are connected in Toad under the same user as the user that you use under SQL*PLUS (and the user that you created the table under)?

Pilgrim.
Nov 7 '08 #5
@amitpatel66,

1. I created the table in my own schema. When you click the schema browser, the tables I created is there.
2. Yes
3. I tried this:

a.) in SQL Plus: select * from TEST.MyTable; (worked)
b.) in Toad : select * from TEST.MyTable; (did not worked)

@Pilgrim,

Yes I did

I created the table using a .bat file.. What do you guys think is the problem?

Many thanks..
Nov 7 '08 #6
Pilgrim333
127 100+
The only thing i can think of is that the table is created under an other user, and under TOAD you are connecting with another user.

If you look under the schema browser under TOAD, can you view the colums of the table? Can you right click on the table and select data from it?
(It's been a long time since i used TOAD, so don't know what the possibilities of it are)

Pilgrim.
Nov 7 '08 #7
tnx Pilgrim,

Yes I could view the columns and I could right click the tables..

I logged in @ SQL Plus with this: Username: TEST
Password: test
Host String: MyDatabase

I logged in @ Toad with this: Database: MyDatabase
User/Schema: TEST
Password: test

both of them are the same right? Am I logging in to the same database?

Many thanks..
Nov 7 '08 #8
amitpatel66
2,367 Expert 2GB
Please do a small test:

Run this query in both from SQLPLUS and TOAD and post the results:

1. SELECT user from DUAL
2. SELECT * FROM ALL_TABLES WHERE TABLE_NAME ='<Your Table Name>'

Run the above two queries and post back the results. Pelase run from SQLPLUS and TOAD.Hope we find out something here
Nov 7 '08 #9
Pilgrim333
127 100+
The connection looks allright.

The queries from Amit should give some more info. What you also could try is, copying and pasting the insert statement from TOAD into SQL*PLUS and see if that works. (Copy and paste it, so it is the exact statement, don't retype it)

Pilgrim.
Nov 7 '08 #10
Toad: user = sys
SQL Plus: user = TEST

I typed the code "select user from dual" in both Toad and SQL Plus and here is the result:

Toad: user = sys
SQL Plus: user = TEST

I don't understand the Toad result. TEST is my user/schema. What do you guys think?

Many thanks..
Nov 7 '08 #11
amitpatel66
2,367 Expert 2GB
Well here is the catch. Can you notice that in TOAD you are logging in by default as SYS user?

You will need to login as TEST in toad to access that table

If your TOAD is set for automatic login, then you need to relogin to the same database with user TEST and then try querying your table. It should work after you login as user TEST in TOAD

Please post back in case of any issues
Nov 7 '08 #12
Pilgrim333
127 100+
Connection is not allright :D

Pilgrim
Nov 7 '08 #13
Ok I now I get it, when connecting to Toad I was connected as SYSDBA but now I changed it to Normal and it worked. When trying the code "select user from dual", both Toad and SQL Plus shows the same user. Thank you very much amitpatel and Pilgrim.
Nov 8 '08 #14
amitpatel66
2,367 Expert 2GB
Good to hear your issue is resolved.
Nov 10 '08 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
2
by: Earl Anderson | last post by:
I recall in my Paradox days that when appending records to a table or updating records and data type conflicts or key violations were automatically placed in tables called "Problem" or "Key_Viol". ...
18
by: Mark P | last post by:
I have a bit of vb code that uses Tables.Append to programatically link tables from Oracle and DB2 datasources. The problem I am having on some client machines is that the link will take anywhere...
4
by: Scott at Cedar Creek | last post by:
I've got a situation where I have live data coming in from multiple sources. I'm able to get it into two tables in RAM. I have one table called "Providers" and it has a ProviderID and some other...
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
32
by: Simon Dean | last post by:
Duh... Not another one... Hopefully simple though, I hate the way *I* (and it might be a CSS trait) can't intermix fixed width divisional elements with a variable auto expanding div??? The...
6
by: sparks | last post by:
Yesterday someone reported that their database was growing and wanted to know what is going on. I looked at it and in the tables were about 20 new ones named stuff like aa ba asetc bsetc ac ...
19
by: cj | last post by:
I'm getting terrible response times trying to pull data from VFP tables using .net--like 2 minutes! Can someone help? f:\arcust01 currently contains 187,728 records and is indexed on CUSTNO...
7
by: johnacooke | last post by:
The W3C added THEAD, TFOOT and TBODY elements to facilitate the printing of long tables, so that header and footer information could be repeated on each page. While I have seen this discussed...
53
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.