I have oracle 11g installed on server and .Net oracle clients will access the database.
Till yesterday i was connecting from clients using this connection string:
From the comments it seems that the default local_listener parameter is probably trying to use the dynamic IP from your new network adaptor, so it isn't using the same address the listener is using. The simplest way to fix this is probably to manually set that parameter:
alter system set local_listener = '(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.26.7)(PORT=1521))' scope=memory;
alter system register;
Or I think you can use a shorter version, but I can't verify that right now:
alter system set local_listener = '172.17.26.7:1521' scope=memory;
alter system register;
If that works - that is, lsnrctl services
now shows orcl
- and you're happy with it, change the memory
to both
and re-execute so it persists across the next DB restart.
Another version of this is to define the listener in the tnsnames.ora
, and then use that alias for the local_listener
value; that would maybe make it easier to make changes if the static IP ever changed, as you'd only need to change the listener.ora
and tnsnames.ora
(and all your clients, of course), you wouldn't have to modify the DB parameter directly. That's probably only useful if you have different people managing the DB and those files, which is not very likely; but might be a bit neater.