ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, this is more of a question about rules (well sort of). I've wrote an oracle program and it's riddled with errors! I was wondering if I'd be allowed to send in the whole program and get some help with the errors... A lot of the errors are the same sort of errors mainly concerning foreign keys from other tables.
If I get a yes I'll post my code, I've only been using oracle for 3 months and have a few books on it so the codes crap is an understatement :S
OK, its less than 100 lines long. I think the majority of problems are syntax related. I'm sure I wont get much fixed but any help at all would be brilliant including tutorials...
i think the order of the create table statements is wrong. upon first view, when you create the CarBooking table, you are creating a foreign key to the Drive table which is being created later on. try reordering your table creations to coincide with the foreign key references.
Wow thanks alot, I'll let you know how it goes. Is the syntax for everything ok then? I get a lot of errors in the first few lines the drop table bit and the errors always point to the name of the tables which is unusual.
Anyway thanks for your help, I hope more people reply I need as much help as possible I'm terrible at oracle
yep, all your errors seem to be pointing to the ordering. also i got errors about the table not existing on the drop tables which is normal for a first run of that script if the schema didn't exist previously.
I havent got ISQL plus working on this computer for some reason but I get errors at the start like you said and I get this sort of error loads even after reordering:
CONSTRAINT LI_FK FOREIGN KEY (LOCATIONID) references PickUpLocation(LOCATIONID),
*
ERROR at line 6:
ORA-00942: table or view does not exist
I put everything that didnt have a foreign key first and then put everything that did have a foreign key second.
on the PickUpLocation table, i modified the PICKUPTIME field to be unique as well... it was creating issues with creating a foreign key to it.
EDIT. looking back on it... i'm not quite sure why you have that foreign key in the WPMember table. cause it doesn't make sense to have the pickuptime unique.
I messed that up a bit, I havent tried to fix it yet but what I want is the time and location to make one key (I trhink its called a compound key... I forgot). Like you said though missing it out of my wedding party member pick up would be much easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.