Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Object Oriented Exercises

3153391May 28 2016 — edited Jun 22 2016

Hi guys, I wonder if you can help.

As I've started as a programmer, I've been told I have to practice OO a bit more. I've done the theory, but I think I will have to take another look at it. , Above all though, I have to do exercises.

What I'm looking for is for suggestions: things I have to practice are:

-Inheritance

-Interfaces

-Polymorphism

-And in general anything to do with OO.

Ideally I don't really need to do any complicated exercise, even simple scenarios would do as long as I can put into practice the theory, printing some user input strings might be enough as long as I can implement 00 principles, so things like, an emplyoee hierarchy or something along these lines.

Also I know Im a bit weak when it comes to linking different classes together, and things like composition.

So, can anybody suggest simple situation/s I could use to practice?

I have installed the Spring Tool Suite but if I'm not mistaken I can use it to create ordinary java projects.

Any idea?

Comments

Christian.Shay -Oracle
Answer

Hi Scott,

We don't support that syntax yet, but in the meantime you can do the following to connect proxy users:

  • To connect to Oracle Database from a .SQL or .PL/SQL file, press F1 to open Command Palette and select Oracle:Connect from the dropdown
  • To connect from Oracle Database Explorer, click the plus sign button
  • A connection dialog will open. In the Connection Type dropdown, select ODP.NET Connect String
  • In the Connection String field, enter a string with this format if providing the hostname, port and service name explicitly: User Id=myuser;Data Source=dbhostname:1521/DBSERVICENAME;Proxy User Id=myproxyuser;Proxy Password=myproxypass;
  • If using a TNS Alias, enter a connect string with this format: User Id=myuser;Data Source=mytnsalias;Proxy User Id=myproxyuser;Proxy Password=myproxypass;
  • Provide a connection name to be used to reference this connection in Database Explorer and elsewhere
  • Click the Create Connection button

For more tips, see the quickstart:

https://www.oracle.com/database/technologies/appdev/dotnet/odtvscodequickstart.html

Marked as Answer by Scott · Oct 6 2019
Scott

Perfect - that worked like a charm!

- Scott -

Hi Scott,
In our newest 19.3.3 release we made it a lot easier to connect using a proxy user. Please try it out and let me know any feedback about the release!
(In any connection dialog, check the Show more options checkbox and provide the proxy username and password)

User_6BTKC

Hello,
Am I being dense with the new dialog
In the examples here
alter user hr grant connect through scott;
connect scott[hr]/tiger
in the new dialog should I be entering scott in user name and scott[hr] in the proxy user name?

User_6BTKC

Ignore me all i was being dense. The proper syntax in the new dialog is
EX alter user hr grant connect through scott;
It is to place the target user HR in user name, and scott and scott's password in the new proxy user fields.

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 20 2016
Added on May 28 2016
4 comments
1,939 views