Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow configuring oracle session mode, needed when using oracle wallet #16266

Closed
wants to merge 1 commit into from

Conversation

butonic
Copy link
Member

@butonic butonic commented May 12, 2015

@bboule can you test this in the lab? It seems without it oracle wallet cannot be used. In config.php set

  'dbsessionmode' => OCI_CRED_EXT,
  'dbuser' => '/',
  'dbpass' => '',
  'dbname' => 'YOUR_WALLET_NAME',

Followup tasks:

  • installer ui to allow using wallet during installation.
  • add option to the console setup command
  • sample documentation
  • report upstream bug regarding upgrade issue @butonic

see http://stackoverflow.com/a/11644451

cc @CaptionF

@DeepDiver1975 DeepDiver1975 added this to the 8.1-current milestone May 12, 2015
@ghost
Copy link

ghost commented May 12, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/12284/
🚀 Test PASSed.🚀
chuck

@bboule
Copy link

bboule commented May 12, 2015

I can I have this set up just need to carve out the time I was under the impression that wallet was simply called by tnsnames let me dig in with my instance today

Sent from my iPhone

On May 12, 2015, at 5:08 AM, Jörn Friedrich Dreyer notifications@github.com wrote:

@bboule can you test this in the lab? It seems without it oracle wallet cannot be used. In config.php set

'dbsessionmode' => OCI_CRED_EXT,
'dbuser' => '/',
'dbpass' => '',
'dbname' ’> 'YOUR_WALLET_NAME',
Followup tasks:

installer ui to allow using wallet during installation.
sample documentation
see http://stackoverflow.com/a/11644451

cc @CaptionF

You can view, comment on, or merge this pull request online at:

#16266

Commit Summary

allow configuring oracle session mode, needed when using oracle wallet
File Changes

M lib/private/db/connectionfactory.php (5)
Patch Links:

https://github.com/owncloud/core/pull/16266.patch
https://github.com/owncloud/core/pull/16266.diff

Reply to this email directly or view it on GitHub.

@DeepDiver1975
Copy link
Member

setting this as 'Developing' since there are open todos

@DeepDiver1975
Copy link
Member

@butonic what shall we do this this?

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-next, 8.1-current Jun 1, 2015
@@ -184,6 +184,11 @@ public function createConnectionParams($config) {
if ($driverOptions) {
$connectionParams['driverOptions'] = $driverOptions;
}
// allow setting oracle session mode parameter, eg OCI_CRED_EXT when using oracle wallet
$sessionMode = $config->getValue('dbsessionmode', null);
if ($sessionMode) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would not make more sense if we just add a connectionParams array to our config and merge it together. Otherwise for each special wish we're adding not really tested and used option switches.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wishful thinking, unfortunately. The adapters in doctrine already treat $driverOptions (which I had hoped could be used for this) differently:

So the correct fix IMO would be to make the doctrine oracle client aware of the $driverOptions. A quick search did not give a good result. Something like http://www.doctrine-project.org/jira/browse/DBAL-643?jql=text%20~%20%22driveroptions%22 but for oracle.

@butonic
Copy link
Member Author

butonic commented Jun 22, 2015

prooved working at the customer. need to find out why I keep running into ORA-12578: TNS:wallet open failed

@ma-schmid
Copy link

Support of Linux distribution assumes, that ORACLE_HOME is hard coded in OCI extension:
there are 2 options to solve this:
a) to use sym link in /usr/lib64 to ORACLE_HOME
b) using environment vars in each php script

b) might be a upgrade / patch hell

What are we recommending ? Please advice!
@butonic @bboule

@ma-schmid
Copy link

Solution provided by contact:

LD_LIBRARY_PATH has been set system wide by creating a file in /etc/ld.so.conf.d/ with a path to ORACLE_HOME.
With ldconfig the LD_LIBRARY_PATH will be extended and the system will search also for libraries.
ORACLE_HOME is defined in apache Vhost Config (Setenv).
With this config, Oracle Wallet works without any symlinks in /usr/lib64.

@butonic @bboule please validate and hand over to documentation / carla

@DeepDiver1975
Copy link
Member

Can we please have feedback on this one? @butonic @bboule @CaptionF - THX

@butonic
Copy link
Member Author

butonic commented Aug 12, 2015

Feedback on what exactly? The PR allows using oracle wallet as confirmed at the customer. @CaptionF gave feedback on the ORACLE_HOME setup. An I responded to the totally valid comment of @LukasReschke.

The todos are still open. The question is who is going to implement them. Maybe @tariqsiddiqui ?

@DeepDiver1975
Copy link
Member

Feedback on what exactly?

  • does it work?
  • who will take care about the open tasks

@DeepDiver1975
Copy link
Member

If you want this in for 8.2 - please take action - otherwise I need to move this to 8.3

@bboule
Copy link

bboule commented Aug 12, 2015

Hey Guys... it is important that this is in 8.2 what exactly needs to be done here? We can confirm this does indeed work what exactly would we need @tariqsiddiqui to do?

@DeepDiver1975
Copy link
Member

what exactly would we need @tariqsiddiqui to do?

There are 3 open tasks in the description of this pr - #16266 (comment)

We can confirm this does indeed work

Great - THX

@DeepDiver1975 DeepDiver1975 force-pushed the alleowconfiguringoraclesessionmode branch from 5f2043f to 921edab Compare September 18, 2015 15:27
@DeepDiver1975 DeepDiver1975 modified the milestones: 9.0-next, 8.2-current Oct 5, 2015
@DeepDiver1975
Copy link
Member

After talking with @butonic we decided to move this to 9.0 because this is not yet production ready.
There is an open issue which we need to get fixed upstream (doctrine) otherwise upgrades will not work.

@butonic butonic assigned butonic and unassigned bboule Oct 5, 2015
@DeepDiver1975
Copy link
Member

After talking with @butonic we decided to move this to 9.0 because this is not yet production ready.
There is an open issue which we need to get fixed upstream (doctrine) otherwise upgrades will not work.

@karlitschek @cmonteroluque @MTRichards FYI

@ghost
Copy link

ghost commented Oct 5, 2015

@bboule FYI

@PVince81
Copy link
Contributor

Is the upstream issue still there ? Is there a direct link or should we submit one ?

@DeepDiver1975
Copy link
Member

Is the upstream issue still there ? Is there a direct link or should we submit one ?

@butonic

@butonic
Copy link
Member Author

butonic commented Nov 20, 2015

We need to submit one. #16266 (comment) is the most detail we currently have. I would have to debug the problem again to fully understand why this problem exists with oracle wallet. I would have to debug the problem again to fully understand why this problem exists with oracle wallet. But I won't find the time in the next 3 weeks.

@DeepDiver1975
Copy link
Member

But I won't find the time in the next 3 weeks.

pretty critical then - 9.0 will be in feature freeze beginning of January .... let's see

@butonic butonic removed their assignment Dec 9, 2015
@butonic
Copy link
Member Author

butonic commented Dec 9, 2015

will not be able to work on this before january

@DeepDiver1975 DeepDiver1975 modified the milestones: 9.1-next, 9.0-current Dec 9, 2015
@DeepDiver1975
Copy link
Member

will not be able to work on this before january

Lucky you there will be more time for 9.0 in January 😉

@MorrisJobke
Copy link
Contributor

@butonic Ping :)

@butonic
Copy link
Member Author

butonic commented Feb 17, 2016

commited patch upstream: doctrine/dbal#2318

@MorrisJobke MorrisJobke modified the milestones: 9.1-next, 9.0-current Mar 4, 2016
@MorrisJobke
Copy link
Contributor

commited patch upstream: doctrine/dbal#2318

Pinged upstream - but this PR need to wait for 9.1

@butonic
Copy link
Member Author

butonic commented Mar 4, 2016

alternate approach as suggested by upstream is in doctrine/dbal#2325 but needs review. @MorrisJobke thx for weighing in.

@DeepDiver1975
Copy link
Member

@butonic can we delete the branch? THX

@butonic butonic deleted the alleowconfiguringoraclesessionmode branch April 12, 2016 12:38
@lock
Copy link

lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants